Class: Rack::Shell::Session

Inherits:
Object
  • Object
show all
Includes:
Test::Methods
Defined in:
lib/racksh/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#appObject (readonly)

Returns the value of attribute app.



7
8
9
# File 'lib/racksh/session.rb', line 7

def app
  @app
end

Instance Method Details

#envObject



13
14
15
# File 'lib/racksh/session.rb', line 13

def env
  ENV['RACK_ENV']
end