Class: Ruboty::CommandBuilder

Inherits:
Object
  • Object
show all
Includes:
Mem
Defined in:
lib/ruboty/command_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (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

#buildObject


11
12
13
# File 'lib/ruboty/command_builder.rb', line 11

def build
  command_class.new(options)
end