Class: AbAdmin::Config::Field
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #group? ⇒ Boolean
-
#initialize(name, options = {}, &block) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name, options = {}, &block) ⇒ Field
Returns a new instance of Field.
91 92 93 94 95 |
# File 'lib/ab_admin/config/base.rb', line 91 def initialize(name, ={}, &block) @name = name @options = @data = block_given? ? block : name.to_sym end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
89 90 91 |
# File 'lib/ab_admin/config/base.rb', line 89 def data @data end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
89 90 91 |
# File 'lib/ab_admin/config/base.rb', line 89 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
89 90 91 |
# File 'lib/ab_admin/config/base.rb', line 89 def @options end |
Instance Method Details
#group? ⇒ Boolean
97 98 99 |
# File 'lib/ab_admin/config/base.rb', line 97 def group? false end |