Class: MiddlemanToc::Builder
- Inherits:
-
Struct
- Object
- Struct
- MiddlemanToc::Builder
- Defined in:
- lib/middleman_toc/builder.rb
Instance Attribute Summary collapse
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#pages ⇒ Object
Returns the value of attribute pages.
Instance Method Summary collapse
Instance Attribute Details
#manifest ⇒ Object
Returns the value of attribute manifest
5 6 7 |
# File 'lib/middleman_toc/builder.rb', line 5 def manifest @manifest end |
#pages ⇒ Object
Returns the value of attribute pages
5 6 7 |
# File 'lib/middleman_toc/builder.rb', line 5 def pages @pages end |
Instance Method Details
#build ⇒ Object
6 7 8 |
# File 'lib/middleman_toc/builder.rb', line 6 def build Node.new(0, nil, nil, nodes(manifest)) end |