Class: HammerCLI::OptionBuilderContainer

Inherits:
AbstractOptionBuilder show all
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={})
  options = []
  builders.each do |b|
    options += b.build(builder_params)
  end
  options
end

#buildersObject



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