Class: DeadSimpleCMS::Attribute::Type::Boolean

Inherits:
Base
  • Object
show all
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

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, options={})
  options = {collection: [true, false], default: false}.merge(options)

  super
end