Class: Clack::Core::GroupOption
- Inherits:
-
Data
- Object
- Data
- Clack::Core::GroupOption
- Defined in:
- lib/clack/core/options_helper.rb
Instance Attribute Summary collapse
-
#disabled ⇒ Object
readonly
Returns the value of attribute disabled.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
-
#hint ⇒ Object
readonly
Returns the value of attribute hint.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#last_in_group ⇒ Object
readonly
Returns the value of attribute last_in_group.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled
25 26 27 |
# File 'lib/clack/core/options_helper.rb', line 25 def disabled @disabled end |
#group ⇒ Object (readonly)
Returns the value of attribute group
25 26 27 |
# File 'lib/clack/core/options_helper.rb', line 25 def group @group end |
#hint ⇒ Object (readonly)
Returns the value of attribute hint
25 26 27 |
# File 'lib/clack/core/options_helper.rb', line 25 def hint @hint end |
#label ⇒ Object (readonly)
Returns the value of attribute label
25 26 27 |
# File 'lib/clack/core/options_helper.rb', line 25 def label @label end |
#last_in_group ⇒ Object (readonly)
Returns the value of attribute last_in_group
25 26 27 |
# File 'lib/clack/core/options_helper.rb', line 25 def last_in_group @last_in_group end |
#value ⇒ Object (readonly)
Returns the value of attribute value
25 26 27 |
# File 'lib/clack/core/options_helper.rb', line 25 def value @value end |
Instance Method Details
#[](key) ⇒ Object
27 |
# File 'lib/clack/core/options_helper.rb', line 27 def [](key) = to_h[key] |
#to_s ⇒ Object
26 |
# File 'lib/clack/core/options_helper.rb', line 26 def to_s = label.to_s |