Module: Ripl::Rack::Commands

Extended by:
Commands
Included in:
Commands
Defined in:
lib/ripl/rack.rb

Instance Method Summary collapse

Instance Method Details

#rackObject



17
18
19
# File 'lib/ripl/rack.rb', line 17

def rack
  Ripl::Rack::App.instance
end

#rackit!Object



21
22
23
24
25
26
27
# File 'lib/ripl/rack.rb', line 21

def rackit!
  Ripl::Rack::Commands.module_eval do
    rack.actions.each do |meth|
      define_method(meth) {|*args| rack.send(meth, *args) }
    end
  end
end