Sha256: 00416d8b2397ef34463fbb0d546f8f6ed0648cf07ddbeecb56fbe80e266cdbcd
Contents?: true
Size: 459 Bytes
Versions: 19
Compression:
Stored size: 459 Bytes
Contents
module Grape # A compiled route for inspection. class Route def initialize(options = {}) @options = options || {} end def method_missing(method_id, *arguments) if match = /route_([_a-zA-Z]\w*)/.match(method_id.to_s) @options[match.captures.last.to_sym] else super end end def to_s "version=#{route_version}, method=#{route_method}, path=#{route_path}" end end end
Version data entries
19 entries across 19 versions & 2 rubygems