private Method

Generic.check_host(v)

There's no documentation for this item.

Source Code

# File uri/generic.rb, line 376
def check_host(v)
  return v unless v

  if @registry || @opaque
    raise InvalidURIError, 
      "can not set host with registry or opaque"
  elsif HOST !~ v
    raise InvalidComponentError,
      "bad component(expected host component): #{v}"
  end

  return true
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.