public Method

AbstractRequest.port

Returns the port number of this request as an integer.

Source Code

# File action_controller/request.rb, line 184
def port
  @port_as_int ||= @env['SERVER_PORT'].to_i
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.