class ComposedCommands::CommandFactory

Attributes

command[R]

Public Class Methods

new(command, options = {}) click to toggle source
# File lib/composed_commands/command_factory.rb, line 4
def initialize(command, options = {})
  @command = command
  @options = options
end

Public Instance Methods

create() click to toggle source
# File lib/composed_commands/command_factory.rb, line 9
def create
  @command.new(@options)
end