Class: Fields::Label
- Inherits:
-
LabeledField
- Object
- Field
- LabeledField
- Fields::Label
- Defined in:
- lib/hammer_cli/output/fields.rb
Instance Attribute Summary
Attributes inherited from LabeledField
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Label
constructor
A new instance of Label.
- #output_definition ⇒ Object
Methods inherited from Field
Constructor Details
#initialize(options = {}, &block) ⇒ Label
Returns a new instance of Label.
91 92 93 94 95 96 97 |
# File 'lib/hammer_cli/output/fields.rb', line 91 def initialize(={}, &block) super() dsl = HammerCLI::Output::Dsl.new :path => [:path] dsl.build &block if block_given? self.output_definition.append dsl.fields end |
Instance Method Details
#output_definition ⇒ Object
99 100 101 102 |
# File 'lib/hammer_cli/output/fields.rb', line 99 def output_definition @output_definition ||= HammerCLI::Output::Definition.new @output_definition end |