Method: Oga::Ruby::Node#method_missing

Defined in:
lib/oga/ruby/node.rb

#method_missing(name, *args) ⇒ Oga::Ruby::Node

Returns a node for a method call.

Parameters:

  • name (Symbol)

    The name of the method to call.

  • args (Array)

    Any arguments (as Node instances) to pass to the method.

Returns:



179
180
181
# File 'lib/oga/ruby/node.rb', line 179

def method_missing(name, *args)
  Node.new(:send, [self, name.to_s, *args])
end