Module: Ably::Modules::StatesmanMonkeyPatch Private
- Defined in:
- lib/submodules/ably-ruby/lib/ably/modules/statesman_monkey_patch.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#after_transition(options = nil, &block) ⇒ Object
private
Override Statesman's #after_transition to support :from arrays This can be removed once github.com/gocardless/statesman/issues/95 is solved.
-
#before_transition(options = nil, &block) ⇒ Object
private
Override Statesman's #before_transition to support :from arrays This can be removed once github.com/gocardless/statesman/issues/95 is solved.
Instance Method Details
#after_transition(options = nil, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override Statesman's #after_transition to support :from arrays This can be removed once github.com/gocardless/statesman/issues/95 is solved
14 15 16 17 18 |
# File 'lib/submodules/ably-ruby/lib/ably/modules/statesman_monkey_patch.rb', line 14 def after_transition( = nil, &block) arrayify_transition() do || super(*, &block) end end |
#before_transition(options = nil, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override Statesman's #before_transition to support :from arrays This can be removed once github.com/gocardless/statesman/issues/95 is solved
6 7 8 9 10 |
# File 'lib/submodules/ably-ruby/lib/ably/modules/statesman_monkey_patch.rb', line 6 def before_transition( = nil, &block) arrayify_transition() do || super(*, &block) end end |