Exception: Rack::AmbiguousProxyMatch

Inherits:
Exception
  • Object
show all
Defined in:
lib/rack/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, matches) ⇒ AmbiguousProxyMatch

Returns a new instance of AmbiguousProxyMatch.



16
17
18
19
# File 'lib/rack/exception.rb', line 16

def initialize(path, matches)
  @path = path
  @matches = matches
end

Instance Attribute Details

#matchesObject (readonly)

Returns the value of attribute matches.



15
16
17
# File 'lib/rack/exception.rb', line 15

def matches
  @matches
end

#pathObject (readonly)

Returns the value of attribute path.



15
16
17
# File 'lib/rack/exception.rb', line 15

def path
  @path
end

Instance Method Details

#to_sObject



21
22
23
# File 'lib/rack/exception.rb', line 21

def to_s
  %Q(Path "#{path}" matched multiple endpoints: #{formatted_matches})
end