Method: Axiom::Evaluator::Context#method_missing

Defined in:
lib/axiom/support/evaluator.rb

#method_missing(name, *args) ⇒ Attribute (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.

Lookup the attribute in the header using the attribute name

Examples:

attribute = context.id

Parameters:

  • name (Symbol)

Returns:



117
118
119
120
121
# File 'lib/axiom/support/evaluator.rb', line 117

def method_missing(name, *args)
  super unless respond_to?(name)
  ::Kernel.raise ::ArgumentError, "wrong number of arguments (#{args.length} for 0)" unless args.empty?
  self[name]
end