Class: MiddlemanToc::Title
- Inherits:
-
Struct
- Object
- Struct
- MiddlemanToc::Title
- Defined in:
- lib/middleman_toc/title.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
Returns the value of attribute page.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#page ⇒ Object
Returns the value of attribute page
2 3 4 |
# File 'lib/middleman_toc/title.rb', line 2 def page @page end |
#path ⇒ Object
Returns the value of attribute path
2 3 4 |
# File 'lib/middleman_toc/title.rb', line 2 def path @path end |
Instance Method Details
#title ⇒ Object
3 4 5 |
# File 'lib/middleman_toc/title.rb', line 3 def title from_data || from_html || from_path end |