Class: Lookbook::PageCollection
- Inherits:
-
Collection
- Object
- Entity
- Collection
- Lookbook::PageCollection
- Defined in:
- lib/lookbook/page_collection.rb
Constant Summary
Constants included from Utils
Utils::FRONTMATTER_REGEX, Utils::POSITION_PREFIX_REGEX
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Collection
#add, #as_tree, #clear, #collapsible?, #find, #find_by_id, #find_by_path, #find_first, #find_next, #find_parent, #find_previous, #get, #get_or_create, #initialize, #items, #name, #non_empty_items, #ordered_entities, #position, #visible_items
Methods inherited from Entity
#hidden?, #hierarchy_depth, #initialize, #lookup_path, #matchers, #path, #position
Constructor Details
This class inherits a constructor from Lookbook::Collection
Class Method Details
.describe_as ⇒ Object
15 16 17 |
# File 'lib/lookbook/page_collection.rb', line 15 def self.describe_as "pages" end |
Instance Method Details
#id ⇒ Object
3 4 5 |
# File 'lib/lookbook/page_collection.rb', line 3 def id generate_id("page-collection", lookup_path || "root") end |
#label ⇒ Object
7 8 9 |
# File 'lib/lookbook/page_collection.rb', line 7 def label "Pages" end |
#type ⇒ Object
11 12 13 |
# File 'lib/lookbook/page_collection.rb', line 11 def type :page_collection end |