Class: Flame::Request
- Inherits:
-
Rack::Request
- Object
- Rack::Request
- Flame::Request
- Defined in:
- lib/flame/request.rb
Overview
Class for requests
Instance Method Summary collapse
Instance Method Details
#http_method ⇒ Object
8 9 10 |
# File 'lib/flame/request.rb', line 8 def http_method params['_method'] || request_method end |
#path_parts ⇒ Object
4 5 6 |
# File 'lib/flame/request.rb', line 4 def path_parts @path_parts ||= path_info.to_s.split('/').reject(&:empty?) end |