Class: Metro::Model::BooleanProperty
- Defined in:
- lib/metro/models/properties/boolean_property.rb
Overview
The boolean property will simply convert any input into a true or false value.
Constant Summary
Constants included from Units
Instance Attribute Summary
Attributes inherited from Property
Instance Method Summary collapse
Methods inherited from Property
define_property, defined_properties, get, #get, get_or_set, gets, hash_with_default_to_nil, inherited, #initialize, properties, properties_hash, property, #set, set, sets
Constructor Details
This class inherits a constructor from Metro::Model::Property
Instance Method Details
#default_value ⇒ Object
20 21 22 |
# File 'lib/metro/models/properties/boolean_property.rb', line 20 def default_value !![:default] end |