Top Level Namespace

Defined Under Namespace

Classes: AssociationHelper, Machine, MachineGroup, MachineNotFoundError, Sequence

Instance Method Summary collapse

Instance Method Details

#Machine(name, attributes = {}, &block) ⇒ Object

Shorthand method for building a machine, is an alias for Machine.build(name, attributes)



7
8
9
# File 'lib/machine.rb', line 7

def Machine(name, attributes={}, &block)
  Machine.build(name, attributes, &block)
end

#Machine!(name, attributes = {}, &block) ⇒ Object

And the same drill for building a machine and saving the result.



12
13
14
# File 'lib/machine.rb', line 12

def Machine!(name, attributes={}, &block)
  Machine.build!(name, attributes, &block)
end