Class: JekyllNavigation::NavigationItem
- Inherits:
-
AbstractNavigationItem
- Object
- Struct
- AbstractNavigationItem
- JekyllNavigation::NavigationItem
- Defined in:
- lib/jekyll-navigation/navigation_item.rb
Instance Attribute Summary
Attributes inherited from AbstractNavigationItem
Instance Method Summary collapse
Methods inherited from AbstractNavigationItem
#exclude?, #order, #parent, #title
Instance Method Details
#[](key) ⇒ Object
45 46 47 |
# File 'lib/jekyll-navigation/navigation_item.rb', line 45 def [] key data[key] end |
#data ⇒ Object
41 42 43 |
# File 'lib/jekyll-navigation/navigation_item.rb', line 41 def data page.data.merge("url" => page.url, "name" => page.name) end |