Class: Statesman::Guard

Inherits:
Callback show all
Defined in:
lib/statesman/guard.rb

Instance Attribute Summary

Attributes inherited from Callback

#callback, #from, #to

Instance Method Summary collapse

Methods inherited from Callback

#applies_to?, #initialize

Constructor Details

This class inherits a constructor from Statesman::Callback

Instance Method Details

#call(*args) ⇒ Object

Raises:



8
9
10
# File 'lib/statesman/guard.rb', line 8

def call(*args)
  raise GuardFailedError.new(from, to) unless super(*args)
end