Class: Fields::LabeledField
- Defined in:
- lib/hammer_cli/output/fields.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ LabeledField
constructor
A new instance of LabeledField.
Methods inherited from Field
Constructor Details
#initialize(options = {}) ⇒ LabeledField
19 20 21 |
# File 'lib/hammer_cli/output/fields.rb', line 19 def initialize(={}) @label = [:label] end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
17 18 19 |
# File 'lib/hammer_cli/output/fields.rb', line 17 def label @label end |