Class: Refinery::Pages::Finder::FinderByPath

Inherits:
Object
  • Object
show all
Defined in:
pages/lib/refinery/pages/finder.rb

Direct Known Subclasses

FinderByScopedPath, FinderByUnscopedPath

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FinderByPath

Returns a new instance of FinderByPath.



92
93
94
# File 'pages/lib/refinery/pages/finder.rb', line 92

def initialize(path)
  @path = path
end

Instance Method Details

#findObject



96
97
98
99
100
101
102
# File 'pages/lib/refinery/pages/finder.rb', line 96

def find
  if slugs_scoped_by_parent?
    FinderByScopedPath.new(path).find
  else
    FinderByUnscopedPath.new(path).find
  end
end