Class: TypedFields::IntegerType
- Inherits:
-
Object
- Object
- TypedFields::IntegerType
- Defined in:
- lib/typed_fields.rb
Instance Method Summary collapse
Instance Method Details
#parse(obj) ⇒ Object
12 13 14 15 |
# File 'lib/typed_fields.rb', line 12 def parse obj return nil if obj.nil? obj.to_i end |