Class: HammerCLI::Output::Generators::Table::Column
- Inherits:
-
Object
- Object
- HammerCLI::Output::Generators::Table::Column
- Defined in:
- lib/hammer_cli/output/generators/table.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(label, params = nil) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(label, params = nil) ⇒ Column
Returns a new instance of Column.
10 11 12 13 |
# File 'lib/hammer_cli/output/generators/table.rb', line 10 def initialize(label, params = nil) @label = label.to_s @params = params || {} end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
8 9 10 |
# File 'lib/hammer_cli/output/generators/table.rb', line 8 def label @label end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
8 9 10 |
# File 'lib/hammer_cli/output/generators/table.rb', line 8 def params @params end |