Class: Ellen::CommandBuilder

Inherits:
Object
  • Object
show all
Includes:
Mem
Defined in:
lib/ellen/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/ellen/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/ellen/command_builder.rb', line 5

def arguments
  @arguments
end

Instance Method Details

#buildObject



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

def build
  command_class.new(options)
end