Module: RbConfig::Obsolete
- Defined in:
- lib/rbconfig/obsolete.rb
Class Method Summary collapse
- ._warn_ ⇒ Object
- .const_missing(name) ⇒ Object
- .method_missing(*args, &block) ⇒ Object
- .respond_to_missing?(*args, &block) ⇒ Boolean
Class Method Details
._warn_ ⇒ Object
5 6 7 8 9 10 |
# File 'lib/rbconfig/obsolete.rb', line 5 def _warn_ loc, = caller_locations(2, 1) loc = "#{loc.to_s}: " if loc warn "#{loc}Use RbConfig instead of obsolete and deprecated Config." self end |
.const_missing(name) ⇒ Object
12 13 14 15 |
# File 'lib/rbconfig/obsolete.rb', line 12 def const_missing(name) _warn_ ::RbConfig.const_get(name) end |
.method_missing(*args, &block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rbconfig/obsolete.rb', line 17 def method_missing(*args, &block) _warn_ rbconfig = ::RbConfig result = rbconfig.__send__(*args, &block) result = rbconfig if rbconfig.equal?(result) result end |
.respond_to_missing?(*args, &block) ⇒ Boolean
25 26 27 28 |
# File 'lib/rbconfig/obsolete.rb', line 25 def respond_to_missing?(*args, &block) _warn_ ::RbConfig.send(:respond_to_missing?, *args, &block) end |