Provides an implicit implementation of the Parseable typeclass for the Boolean type.
This object defines a method to parse a String into a Boolean value using the toBooleanOption method. It is used as an implicit instance where the Parseable[Boolean] is required.
Parsing accepts strings like "true" or "false" (case-insensitive) and returns an Option containing the corresponding Boolean value if successful.
Extends the ParseableBoolean trait, which provides the parsing logic for the Boolean type.
Parses the input string into an Option[Boolean] based on its content. The method interprets the string as a boolean value ("true" or "false") and returns it as an Option. If the string cannot be interpreted as a valid boolean, the method returns None.
Parses the input string into an Option[Boolean] based on its content. The method interprets the string as a boolean value ("true" or "false") and returns it as an Option. If the string cannot be interpreted as a valid boolean, the method returns None.
Value parameters
w
The input string to parse into a boolean value.
Attributes
Returns
An Option[Boolean] containing Some(true) or Some(false) if parsing is successful, or None if the string is not a valid representation of a boolean.