Class: Rack::Shell::Session
- Inherits:
-
Object
- Object
- Rack::Shell::Session
- Includes:
- Test::Methods
- Defined in:
- lib/racksh/session.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #env ⇒ Object
-
#initialize(app) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(app) ⇒ Session
Returns a new instance of Session.
9 10 11 |
# File 'lib/racksh/session.rb', line 9 def initialize(app) @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
7 8 9 |
# File 'lib/racksh/session.rb', line 7 def app @app end |
Instance Method Details
#env ⇒ Object
13 14 15 |
# File 'lib/racksh/session.rb', line 13 def env ENV['RACK_ENV'] end |