class DataMetaDom::Converter
Converter
class definition, see implementations:
-
INTEGRAL_CONV
-
FRACT_CONV
-
BOOL_CONV
-
DTTM_CONV
-
TEXT_CONV
Attributes
deser[R]
Lambda converting from a textual to matching data type.
ser[R]
Lambda converting from a data type to matching textual.
Public Class Methods
new(serialize, deserialize)
click to toggle source
Creates an instance with the given parameters, two lambdas, see ser and deser properties for details.
# File lib/dataMetaDom/converter.rb, line 36 def initialize(serialize, deserialize); @ser = serialize; @deser = deserialize end