Class: IRBRemote::Configuration
- Inherits:
-
Object
- Object
- IRBRemote::Configuration
- Defined in:
- lib/irb_remote/configuration.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/irb_remote/configuration.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/irb_remote/configuration.rb', line 3 def port @port end |