class RoadForest::Dispatcher::RouteMap

Attributes

from_name[RW]
from_params[RW]
in_name[RW]
to_name[RW]

Public Class Methods

new() click to toggle source
# File lib/roadforest/application/dispatcher.rb, line 123
def initialize
end

Public Instance Methods

matches?(in_name, name, params) click to toggle source
# File lib/roadforest/application/dispatcher.rb, line 127
def matches?(in_name, name, params)
  return false unless in_name == @in_name
  return false unless name == @from_name
  return false unless @from_params.all?{|name| params.has_key?(name)}
  return true
end