Class: DeadSimpleCMS::Attribute::Type::Boolean
- Defined in:
- lib/dead_simple_cms/attribute/type/all.rb
Constant Summary
Constants inherited from Base
DeadSimpleCMS::Attribute::Type::Base::VALID_INPUT_TYPES
Instance Attribute Summary
Attributes inherited from Base
#group_hierarchy, #input_type, #required, #section
Instance Method Summary collapse
-
#initialize(identifier, options = {}) ⇒ Boolean
constructor
A new instance of Boolean.
Methods inherited from Base
#default, #hint, #inspect, #length, #root_group?, #section_identifier, #value, #value=
Constructor Details
#initialize(identifier, options = {}) ⇒ Boolean
Returns a new instance of Boolean.
21 22 23 24 25 |
# File 'lib/dead_simple_cms/attribute/type/all.rb', line 21 def initialize(identifier, ={}) = {collection: [true, false], default: false}.merge() super end |