private Method

Generic.check_port(v)

There's no documentation for this item.

Source Code

# File uri/generic.rb, line 402
def check_port(v)
  return v unless v

  if @registry || @opaque
    raise InvalidURIError, 
      "can not set port with registry or opaque"
  elsif !v.kind_of?(Fixnum) && PORT !~ v
    raise InvalidComponentError,
      "bad component(expected port 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.