class ActionDispatch::Routing::Mapper::Scope

def [](key)

def [](key)
  scope = find { |node| node.frame.key? key }
  scope && scope.frame[key]
end