Class: Duststorm::Attribute::Coordinate

Inherits:
Virtus::Attribute
  • Object
show all
Defined in:
lib/duststorm/attribute/coordinate.rb

Instance Method Summary collapse

Instance Method Details

#coerce(value) ⇒ Object



4
5
6
# File 'lib/duststorm/attribute/coordinate.rb', line 4

def coerce(value)
  value.to_f
end