Scalar

zio.blocks.config.Flag.Reader.Scalar
trait Scalar[A] extends Reader[A]

Marker subclass for scalar types (types whose string representation contains no commas). Used to enable comma-separated list parsing.

Attributes

Source
FlagReader.scala
Graph
Supertypes
trait Flag.this.Reader[A]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def parse(flagName: String, raw: String): Either[ConfigError, A]
Implicitly added by seqReader

Parse a flag value from a string.

Parse a flag value from a string.

Value parameters

flagName

the name of the flag (for error messages)

raw

the raw string value

Attributes

Returns

Either a parsed value or a ConfigError

Source
FlagReader.scala
def typeName: String
Implicitly added by seqReader

Human-readable type name for error messages.

Human-readable type name for error messages.

Attributes

Source
FlagReader.scala

Inherited and Abstract methods

def parse(flagName: String, raw: String): Either[ConfigError, A]

Parse a flag value from a string.

Parse a flag value from a string.

Value parameters

flagName

the name of the flag (for error messages)

raw

the raw string value

Attributes

Returns

Either a parsed value or a ConfigError

Inherited from:
Reader
Source
FlagReader.scala
def typeName: String

Human-readable type name for error messages.

Human-readable type name for error messages.

Attributes

Inherited from:
Reader
Source
FlagReader.scala