Class: HammerCLI::OptionBuilderContainer
- Inherits:
-
AbstractOptionBuilder
- Object
- AbstractOptionBuilder
- HammerCLI::OptionBuilderContainer
- Defined in:
- lib/hammer_cli/option_builder.rb
Instance Method Summary collapse
Instance Method Details
#build(builder_params = {}) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/hammer_cli/option_builder.rb', line 24 def build(builder_params={}) = [] builders.each do |b| += b.build(builder_params) end end |
#builders ⇒ Object
32 33 34 35 |
# File 'lib/hammer_cli/option_builder.rb', line 32 def builders @builders ||= [] @builders end |
#builders=(builders) ⇒ Object
37 38 39 |
# File 'lib/hammer_cli/option_builder.rb', line 37 def builders=(builders) @builders=builders end |