Class: Rack::Handler::Grizzly

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/handler/grizzly.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rack_app) ⇒ Grizzly

Returns a new instance of Grizzly.



40
41
42
# File 'lib/rack/handler/grizzly.rb', line 40

def initialize(rack_app)
  @rack_app = rack_app
end

Class Method Details

.method_missing(m, *args) ⇒ Object

I’m another dummy method



51
52
53
# File 'lib/rack/handler/grizzly.rb', line 51

def self.method_missing (m, *args)
      puts "Someone tried to call #{m} on Rack::Handler::Grizzly!"
end

.run(rack_app, *args) ⇒ Object



43
44
45
46
47
# File 'lib/rack/handler/grizzly.rb', line 43

def self.run (rack_app, *args)
    @rack_app = rack_app
    $grizzly_rack_app = rack_app
   #Look at me, I'm a dummy method
end

.stopObject

Look at me, I’m a dummy method



48
49
50
# File 'lib/rack/handler/grizzly.rb', line 48

def self.stop
    #I'm another dummy method
end

Instance Method Details

#call(env) ⇒ Object



54
55
56
# File 'lib/rack/handler/grizzly.rb', line 54

def call(env)
  JRuby::Rack::Response.new(@rack_app.call(env))
end