Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
URI.const_missing
(::Symbol arg0) -> untyped
const_missing(const)
lib/uri/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/uri/common.rb, line 43
def self.const_missing(const)
if const == :REGEXP
warn "URI::REGEXP is obsolete. Use URI::RFC2396_REGEXP explicitly.", uplevel: 1 if $VERBOSE
URI::RFC2396_REGEXP
elsif value = RFC2396_PARSER.regexp[const]
warn "URI::#{const} is obsolete. Use RFC2396_PARSER.regexp[#{const.inspect}] explicitly.", uplevel: 1 if $VERBOSE
value
elsif value = RFC2396_Parser.const_get(const)
warn "URI::#{const} is obsolete. Use RFC2396_Parser::#{const} explicitly.", uplevel: 1 if $VERBOSE
value
else
super
end
end
No documentation available