20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/interface.rb', line 20
def self.extended(base)
base.extend SoftAlias
base.class_eval do
soft_alias :state_fu => [:stfu, :fu, :stateful, :workflow, :engine, :machine, :context]
soft_alias :state_fu_bindings => [:bindings, :workflows, :engines, :machines, :contexts]
soft_alias :state_fu! => [:stfu!, :initialize_machines!, :initialize_state!]
class << self
extend SoftAlias
soft_alias :state_fu_machine => [:stfu, :state_fu, :workflow, :stateful, :statefully, :state_machine, :engine]
soft_alias :state_fu_machines => [:stfus, :state_fus, :workflows, :engines]
end
end
end
|