class Bundler::URI::Generic
def check_scheme(v)
Checks the scheme +v+ component against the Bundler::URI::Parser Regexp for :SCHEME.
def check_scheme(v) if v && parser.regexp[:SCHEME] !~ v raise InvalidComponentError, "bad component(expected scheme component): #{v}" end return true end