Class: GemSearch::CommandBuilder
- Inherits:
-
Object
- Object
- GemSearch::CommandBuilder
- Includes:
- Mem
- Defined in:
- lib/gem_search/command_builder.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(arguments = ARGV) ⇒ CommandBuilder
constructor
A new instance of CommandBuilder.
Constructor Details
#initialize(arguments = ARGV) ⇒ CommandBuilder
Returns a new instance of CommandBuilder.
10 11 12 |
# File 'lib/gem_search/command_builder.rb', line 10 def initialize(arguments = ARGV) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
8 9 10 |
# File 'lib/gem_search/command_builder.rb', line 8 def arguments @arguments end |
Instance Method Details
#build ⇒ Object
14 15 16 |
# File 'lib/gem_search/command_builder.rb', line 14 def build command_class.new() end |