Module: Hx::Filter
- Includes:
- View
- Included in:
- Backend::HobixFilter, Backend::RawFiles, Cache, CircumfixPath, Listing::DateArchive, Listing::FlatIndex, Listing::Limit, Listing::Paginate, Listing::RecursiveIndex, NullInput, Output::LiquidTemplate, Output::LiquidTemplate::TemplateSource, Overlay, PathSubset, Site, Sort
- Defined in:
- lib/hx.rb
Overview
minimal complete definition: each_entry_path + get_entry, or each_entry
Instance Method Summary collapse
Methods included from View
Instance Method Details
#each_entry(selector) ⇒ Object
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/hx.rb', line 67 def each_entry(selector) each_entry_path(selector) do |path| begin entry = get_entry(path) rescue NoSuchEntryError next # entries may come and go during the enumeration end yield path, entry end end |
#each_entry_path(selector) ⇒ Object
63 64 65 |
# File 'lib/hx.rb', line 63 def each_entry_path(selector) each_entry(selector) { |path, entry| yield path } end |