Module: Ripl::Rack::Commands
Instance Method Summary collapse
Instance Method Details
#rack ⇒ Object
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 |