Method: Flow::StateProxy#method_missing
- Defined in:
- lib/flow/state_proxy.rb
#method_missing(method_name, *arguments, &block) ⇒ Object
Deprecated.
11 12 13 14 15 16 17 18 19 |
# File 'lib/flow/state_proxy.rb', line 11 def method_missing(method_name, *arguments, &block) return super unless _state.respond_to?(method_name) ActiveSupport::Deprecation.warn( "Direct state access of `#{method_name}' on #{_state.inspect} will be removed in a future version of flow. "\ "Use a state accessor instead - for more information see github/RubyAfterAll/flow/deprecation_notice" ) _state.public_send(method_name, *arguments, &block) end |