class Spine::Routing::NestedRouter

Attributes

parent[R]

Public Class Methods

new(path, parent) click to toggle source
# File lib/spine/routing/nested_router.rb, line 6
def initialize(path, parent)
  @path = path
  @parent = parent
end

Public Instance Methods

add(route) click to toggle source
# File lib/spine/routing/nested_router.rb, line 11
def add(route)
  parent.add(route)
end
build(pattern, options) click to toggle source
# File lib/spine/routing/nested_router.rb, line 15
def build(pattern, options)
  parent.build([@path, normalize_path(pattern)].join, options)
end