Class: Evil::Plugin::Configuration::ConfigField
- Defined in:
- lib/evil/plugin/configuration.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, name, options = {}) ⇒ ConfigField
constructor
A new instance of ConfigField.
- #label ⇒ Object
Constructor Details
#initialize(type, name, options = {}) ⇒ ConfigField
Returns a new instance of ConfigField.
9 10 11 |
# File 'lib/evil/plugin/configuration.rb', line 9 def initialize(type, name, ={}) @type, @name, = type, name, end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/evil/plugin/configuration.rb', line 7 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/evil/plugin/configuration.rb', line 7 def end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/evil/plugin/configuration.rb', line 7 def type @type end |
Instance Method Details
#label ⇒ Object
13 14 15 |
# File 'lib/evil/plugin/configuration.rb', line 13 def label [:label] || name.to_s.capitalize end |