Class: IRBRemote::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/irb_remote/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
# File 'lib/irb_remote/configuration.rb', line 5

def initialize
  @host = ENV.fetch('IRB_REMOTE_HOST', 'localhost')
  @port = Integer(ENV.fetch('IRB_REMOTE_PORT', '9876'))
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/irb_remote/configuration.rb', line 3

def host
  @host
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/irb_remote/configuration.rb', line 3

def port
  @port
end