Sha256: 7ab894d89dff52490541217ff0e1be30636482c62257a59b938ab17848b578e4
Contents?: true
Size: 385 Bytes
Versions: 5
Compression:
Stored size: 385 Bytes
Contents
require 'bacon' require 'rack' require 'jellyfish' Bacon.summary_on_exit shared :jellyfish do %w[options get head post put delete patch].each do |method| instance_eval <<-RUBY def #{method} path='/', app=app app.call('PATH_INFO' => path, 'REQUEST_METHOD' => '#{method}'.upcase) end RUBY end end module Kernel def eq? rhs self == rhs end end
Version data entries
5 entries across 5 versions & 1 rubygems