Sha256: bbda44d53e30b68171d521e95b057513db73d73e9fb8ce91f28c9cdd87416305
Contents?: true
Size: 328 Bytes
Versions: 1
Compression:
Stored size: 328 Bytes
Contents
module Mountapi module Route class Method def initialize(method) @http_method = method.downcase.to_sym end def to_sym raw_value end def raw_value @http_method end def match?(meth) meth.downcase.to_sym == @http_method end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mountapi-0.11.1 | lib/mountapi/route/method.rb |