Class: JekyllNavigation::NavigationTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- JekyllNavigation::NavigationTag
- Defined in:
- lib/jekyll-navigation.rb
Instance Method Summary collapse
-
#initialize(tag_name, level, tokens) ⇒ NavigationTag
constructor
A new instance of NavigationTag.
- #render(context) ⇒ Object
Constructor Details
#initialize(tag_name, level, tokens) ⇒ NavigationTag
Returns a new instance of NavigationTag.
25 26 27 28 |
# File 'lib/jekyll-navigation.rb', line 25 def initialize(tag_name, level, tokens) super @level = level.to_s.strip end |
Instance Method Details
#render(context) ⇒ Object
30 31 32 33 |
# File 'lib/jekyll-navigation.rb', line 30 def render(context) = Navigation.new(context, @level) .render end |