Class: Locomotive::Steam::PageFinderService
- Inherits:
-
Object
- Object
- Locomotive::Steam::PageFinderService
- Includes:
- Services::Concerns::Decorator
- Defined in:
- lib/locomotive/steam/services/page_finder_service.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#by_handle(handle, with_cache = true) ⇒ Object
22 23 24 25 26 |
# File 'lib/locomotive/steam/services/page_finder_service.rb', line 22 def by_handle(handle, with_cache = true) decorate do with_cache ? page_map[handle] : repository.by_handle(handle) end end |
#find(path) ⇒ Object
10 11 12 13 14 |
# File 'lib/locomotive/steam/services/page_finder_service.rb', line 10 def find(path) decorate do repository.by_fullpath(path) end end |
#match(path) ⇒ Object
16 17 18 19 20 |
# File 'lib/locomotive/steam/services/page_finder_service.rb', line 16 def match(path) decorate do repository.matching_fullpath(path_combinations(path)) end end |