Class: Metamorpher::Builders::AST::Builder

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/metamorpher/builders/ast/builder.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *arguments, &block) ⇒ Object



20
21
22
23
24
# File 'lib/metamorpher/builders/ast/builder.rb', line 20

def method_missing(method, *arguments, &block)
  builders_with_shorthand
    .find { |builder| builder.shorthand?(method, *arguments, &block) }
    .method_missing(method, *arguments, &block)
end