Sha256: 369aa2d2a6d5cc052606226326c80493370e4f11597ffcac9ec6c3289de30c77
Contents?: true
Size: 673 Bytes
Versions: 17
Compression:
Stored size: 673 Bytes
Contents
class Rack::App::Router::Base def endpoints @endpoints ||= [] end def register_endpoint!(request_method, request_path, description, endpoint) endpoints.push( { :request_method => request_method.to_s.upcase, :request_path => Rack::App::Utils.normalize_path(request_path), :description => description, :endpoint => endpoint } ) compile_registered_endpoints! return endpoint end def fetch_endpoint(request_method, request_path) raise('IMPLEMENTATION MISSING ERROR') end protected def compile_registered_endpoints! raise('IMPLEMENTATION MISSING ERROR') end end
Version data entries
17 entries across 17 versions & 1 rubygems