Class: Refinery::Pages::FinderByPath
- Inherits:
-
Object
- Object
- Refinery::Pages::FinderByPath
- Defined in:
- lib/refinery/pages/finder.rb
Direct Known Subclasses
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(path) ⇒ FinderByPath
constructor
A new instance of FinderByPath.
Constructor Details
#initialize(path) ⇒ FinderByPath
Returns a new instance of FinderByPath.
94 95 96 |
# File 'lib/refinery/pages/finder.rb', line 94 def initialize(path) @path = path end |
Instance Method Details
#find ⇒ Object
98 99 100 101 102 103 104 |
# File 'lib/refinery/pages/finder.rb', line 98 def find if slugs_scoped_by_parent? FinderByScopedPath.new(path).find else FinderByUnscopedPath.new(path).find end end |