Module: Sinatra::Any
- Defined in:
- lib/sinatra/any.rb
Instance Method Summary collapse
Instance Method Details
#any(path, *args, &blk) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/sinatra/any.rb', line 7 def any(path, *args, &blk) passing = lambda { blk.call ; pass } %w(get post put delete head).each do |meth| send meth, path, *args, &passing end end |