Parent

Class/Module Index [+]

Quicksearch

Grape::Route

A compiled route for inspection.

Public Class Methods

new(options = {}) click to toggle source
# File lib/grape/route.rb, line 4
def initialize(options = {})
  @options = options || {}
end

Public Instance Methods

method_missing(method_id, *arguments) click to toggle source
# File lib/grape/route.rb, line 8
def method_missing(method_id, *arguments)
  match = /route_([_a-zA-Z]\w*)/.match(method_id.to_s)
  if match
    @options[match.captures.last.to_sym]
  else
    super
  end
end
to_s() click to toggle source
# File lib/grape/route.rb, line 17
def to_s
  "version=#{route_version}, method=#{route_method}, path=#{route_path}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.