Class: Ruboty::CommandBuilder
- Inherits:
-
Object
- Object
- Ruboty::CommandBuilder
- Includes:
- Mem
- Defined in:
- lib/ruboty/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.
7 8 9 |
# File 'lib/ruboty/command_builder.rb', line 7 def initialize(arguments = ARGV) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/ruboty/command_builder.rb', line 5 def arguments @arguments end |
Instance Method Details
#build ⇒ Object
11 12 13 |
# File 'lib/ruboty/command_builder.rb', line 11 def build command_class.new() end |