Class: Jsm::Machines

Inherits:
Object
  • Object
show all
Defined in:
lib/jsm/machines.rb

Class Method Summary collapse

Class Method Details

.add_machines(klass, state_machine) ⇒ Object



2
3
4
5
# File 'lib/jsm/machines.rb', line 2

def self.add_machines(klass, state_machine)
  @@machines ||= {}
  @@machines[klass.to_s] = state_machine
end

.machinesObject



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

def self.machines
  @@machines ||= {}
end