class Boolean
A boolean type converter.
Definitions
def name
Get the SQL type name for boolean.
Signature
-
returns
String The type name.
Implementation
def name
"BOOLEAN"
end
def parse(string)
Parse a boolean value from the database.
Signature
-
parameter
stringString | Nil The raw string value ('t' or 'f').
-
returns
Boolean The parsed boolean value.
Implementation
def parse(string)
string == "t"
end