Module: ActionTree::Components::Rack::Helpers
- Defined in:
- lib/action_tree/components/rack.rb
Instance Method Summary collapse
- #delete(loc = nil, &blk) ⇒ Object
-
#get(loc = nil, &blk) ⇒ Object
FROM SINATRA: redirect content_type.
- #post(loc = nil, &blk) ⇒ Object
- #put(loc = nil, &blk) ⇒ Object
Instance Method Details
#delete(loc = nil, &blk) ⇒ Object
48 |
# File 'lib/action_tree/components/rack.rb', line 48 def delete(loc=nil, &blk); action(loc, :delete, &blk); end |
#get(loc = nil, &blk) ⇒ Object
FROM SINATRA: redirect content_type
45 |
# File 'lib/action_tree/components/rack.rb', line 45 def get( loc=nil, &blk); action(loc, :get, &blk); end |
#post(loc = nil, &blk) ⇒ Object
47 |
# File 'lib/action_tree/components/rack.rb', line 47 def post( loc=nil, &blk); action(loc, :post, &blk); end |
#put(loc = nil, &blk) ⇒ Object
46 |
# File 'lib/action_tree/components/rack.rb', line 46 def put( loc=nil, &blk); action(loc, :put, &blk); end |