Method: RbConfig.method_missing
- Defined in:
- lib/standard/facets/rbconfig.rb
.method_missing(s, *a, &b) ⇒ Object
Methodized lookup of config.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/standard/facets/rbconfig.rb', line 10 def self.method_missing(s,*a,&b) s = s.to_s if CONFIG.key?(s) CONFIG[s] elsif CONFIG.key?(s.upcase) CONFIG[s.upcase] else super(s,*a,&b) end end |