Method: Linearly::Step::Static#method_missing

Defined in:
lib/linearly/step/static.rb

#method_missing(name, *args, &block) ⇒ Object (private)

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.

Dynamically pass valid inputs to the wrapped State

Parameters:

  • name (Symbol|String)
  • args (Array<Object>)
  • block (Proc)

Returns:

  • (Object)

Raises:

  • (NoMethodError)


100
101
102
103
# File 'lib/linearly/step/static.rb', line 100

def method_missing(name, *args, &block)
  allowed = [:correlation_id] + state.methods + self.class.inputs.keys
  allowed.include?(name) ? state.send(name, *args, &block) : super
end