Method: SQL#method_missing
- Defined in:
- lib/eno.rb
#method_missing(sym, *args) ⇒ Object
427 428 429 430 431 432 433 434 435 436 437 438 439 |
# File 'lib/eno.rb', line 427 def method_missing(sym, *args) if @ctx.has_key?(sym) value = @ctx[sym] return Symbol === value ? Identifier.new(value) : value end super if sym == :to_hash if args.empty? Identifier.new(sym) else FunctionCall.new(sym, *args) end end |