Class: Flame::Request

Inherits:
Rack::Request
  • Object
show all
Defined in:
lib/flame/request.rb

Overview

Class for requests

Instance Method Summary collapse

Instance Method Details

#http_methodObject



8
9
10
# File 'lib/flame/request.rb', line 8

def http_method
	params['_method'] || request_method
end

#path_partsObject



4
5
6
# File 'lib/flame/request.rb', line 4

def path_parts
	@path_parts ||= path_info.to_s.split('/').reject(&:empty?)
end