Sha256: d41bee10289a4737ddd5db667c19bec323715539efa68f8ea6fe4025b4c21fd0

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

# encoding: UTF-8

module Mojito::Matchers
	
	module Methods
		
		def METHOD(method)
			proc { request.request_method == method.to_s.upcase }
		end
		
		def GET
			METHOD(:get)
		end
		
		def HEAD
			METHOD(:head)
		end
		
		def POST
			METHOD(:post)
		end
		
		def PUT
			METHOD(:put)
		end
		
		def DELETE
			METHOD(:delete)
		end
		
	end
	
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mojito-0.1.1 lib/mojito/matchers/methods.rb
mojito-0.1.0 lib/mojito/matchers/methods.rb
mojito-0.0.1 lib/mojito/matchers/methods.rb