module Artoo

Constants

VERSION

Public Class Methods

new(robot=Robot, options={}, &block) click to toggle source

Create a new Artoo robot. The block is evaluated in the new robot’s class scope.

# File lib/artoo/delegator.rb, line 34
def self.new(robot=Robot, options={}, &block)
  robot = Class.new(robot)
  robot.class_eval(&block) if block_given?
  robot
end