Method: Foraneus.float

Defined in:
lib/foraneus.rb

.float(name, *args) ⇒ Object

Declares a float field.

Parameters:

  • name (Symbol)

    The name of the field.

  • opts (Hash)


58
59
60
61
# File 'lib/foraneus.rb', line 58

def self.float(name, *args)
  converter = Foraneus::Converters::Float.new(*args)
  field(name, converter)
end