Method: Nydp::ContextSymbol.const_missing

Defined in:
lib/nydp/context_symbol.rb

.const_missing(const) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/nydp/context_symbol.rb', line 3

def self.const_missing const
  if const.to_s =~ /^ContextSymbol_\d+_\d+$/
    name          = const.to_s.split(/_/)
    define_klass(const, name[1].to_i, name[2].to_i)
    const_get const
  else
    super(const)
  end
end