Exception: PgVerify::Interpret::InvalidDSL_transition
- Inherits:
-
Core::Error
- Object
- StandardError
- Core::Error
- PgVerify::Interpret::InvalidDSL_transition
- Defined in:
- lib/pg-verify/interpret/interpret.rb
Instance Method Summary collapse
- #formatted ⇒ Object
-
#initialize(message) ⇒ InvalidDSL_transition
constructor
A new instance of InvalidDSL_transition.
Methods inherited from Core::Error
Constructor Details
#initialize(message) ⇒ InvalidDSL_transition
Returns a new instance of InvalidDSL_transition.
75 76 77 |
# File 'lib/pg-verify/interpret/interpret.rb', line 75 def initialize() @message = end |
Instance Method Details
#formatted ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/pg-verify/interpret/interpret.rb', line 78 def formatted() hint = [ "Define transitions like this:" ] hint << "transition <pre-state> => <post-state> do ... end" hint << " where" hint << " <pre-state> & <post-state> are states in this graph, like :on or :off" return @message, nil, hint.join("\n") end |