Class: RDParser::RDParser::GenericBlockToHashCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/rdparser/rdparser.rb

Overview

Class used to accept Ruby metafoo when specifying grammars with a block and virtual methods

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



3
# File 'lib/rdparser/rdparser.rb', line 3

def method_missing(m, *args); @h ||= {}; @h[m] = args.first; @h; end