Class: TypedFields::BooleanType

Inherits:
Object
  • Object
show all
Defined in:
lib/typed_fields.rb

Instance Method Summary collapse

Instance Method Details

#parse(obj) ⇒ Object



33
34
35
36
# File 'lib/typed_fields.rb', line 33

def parse obj
  return nil if obj.nil?
  obj == "true"
end