Class: Perron::Site::Builder::Paths

Inherits:
Object
  • Object
show all
Includes:
RouteResources
Defined in:
lib/perron/site/builder/paths.rb

Defined Under Namespace

Classes: ConstraintCollection, ConstraintResource

Instance Method Summary collapse

Methods included from RouteResources

#buildable_routes, #collection_for, #resources_for

Constructor Details

#initialize(paths) ⇒ Paths

Returns a new instance of Paths.



11
12
13
# File 'lib/perron/site/builder/paths.rb', line 11

def initialize(paths)
  @paths = paths
end

Instance Method Details

#getObject



15
16
17
18
19
# File 'lib/perron/site/builder/paths.rb', line 15

def get
  buildable_routes.each do |route|
    paths_for(route).each { @paths << it }
  end
end