Method: Statesman::Guard#call
- Defined in:
- lib/statesman/guard.rb
#call(*args) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/statesman/guard.rb', line 6 def call(*args) unless super(*args) raise GuardFailedError, "Guard on transition from: '#{from}' to '#{to}' returned false" end end |