Class: Rack::Deflatermaus

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/deflatermaus.rb,
lib/rack/deflatermaus/player.rb,
lib/rack/deflatermaus/version.rb

Defined Under Namespace

Classes: Player

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Deflatermaus

Returns a new instance of Deflatermaus.



8
9
10
# File 'lib/rack/deflatermaus.rb', line 8

def initialize(app)
  @deflater = Deflater.new(app)
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
16
# File 'lib/rack/deflatermaus.rb', line 12

def call(env)
  Player.new.play

  @deflater.call(env)
end