Class: ActiveModel::Type::Boolean
- Defined in:
- lib/active_model/type/boolean.rb
Overview
:nodoc:
Constant Summary collapse
- FALSE_VALUES =
[false, 0, '0', 'f', 'F', 'false', 'FALSE', 'off', 'OFF'].to_set
Instance Attribute Summary
Attributes inherited from Value
Instance Method Summary collapse
Methods inherited from Value
#==, #assert_valid_value, #binary?, #cast, #changed?, #changed_in_place?, #deserialize, #hash, #initialize, #map, #serialize, #type_cast_for_schema
Constructor Details
This class inherits a constructor from ActiveModel::Type::Value
Instance Method Details
#type ⇒ Object
6 7 8 |
# File 'lib/active_model/type/boolean.rb', line 6 def type :boolean end |