Class: HydraHead::Routes

Inherits:
Object
  • Object
show all
Includes:
RouteSets
Defined in:
lib/hydra-head/routes.rb

Defined Under Namespace

Modules: RouteSets

Instance Method Summary collapse

Methods included from RouteSets

#assets_with_all_nested_routes

Constructor Details

#initialize(router, options) ⇒ Routes

Returns a new instance of Routes.



5
6
7
8
# File 'lib/hydra-head/routes.rb', line 5

def initialize(router, options)
  @router = router
  @options = options
end

Instance Method Details

#drawObject



10
11
12
13
14
# File 'lib/hydra-head/routes.rb', line 10

def draw
  route_sets.each do |r|
    self.send(r)
  end
end