Module: ToyRobot::Factory

Defined in:
lib/toy_robot/factory.rb

Defined Under Namespace

Modules: BoardFactory, ControllerFactory, RobotFactory, ViewFactory

Class Method Summary collapse

Class Method Details

.create(identifier, opts = {}) ⇒ Object



11
12
13
14
15
16
# File 'lib/toy_robot/factory.rb', line 11

def create(identifier, opts = {})
  case identifier
  when :controller
    ControllerFactory.create(opts)
  end
end