Method: Foraneus.boolean

Defined in:
lib/foraneus.rb

.boolean(name, *args) ⇒ Object

Declares a boolean field.

Parameters:

  • name (Symbol)

    The name of the field.



31
32
33
34
# File 'lib/foraneus.rb', line 31

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