Parent

Methods

Class/Module Index [+]

Quicksearch

Rack::Builder

Attributes

ins[R]

Public Instance Methods

leaf_app() click to toggle source
# File lib/rack/flash.rb, line 23
def leaf_app
  ins.last
end
run(app) click to toggle source
# File lib/rack/flash.rb, line 14
def run(app)
  klass = app.class
  klass.instance_variable_set "@rack_builder", self
  def klass.rack_builder
    @rack_builder
  end
  @ins << app #lambda { |nothing| app }
end
use(middleware, *args, &block) click to toggle source
# File lib/rack/flash.rb, line 4
def use(middleware, *args, &block)
  middleware.instance_variable_set "@rack_builder", self
  def middleware.rack_builder
    @rack_builder
  end
  @ins << lambda { |app|
    middleware.new(app, *args, &block)
  }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.