Class: MiddlemanToc::Builder

Inherits:
Struct
  • Object
show all
Defined in:
lib/middleman_toc/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#manifestObject

Returns the value of attribute manifest

Returns:

  • (Object)

    the current value of manifest



5
6
7
# File 'lib/middleman_toc/builder.rb', line 5

def manifest
  @manifest
end

#pagesObject

Returns the value of attribute pages

Returns:

  • (Object)

    the current value of pages



5
6
7
# File 'lib/middleman_toc/builder.rb', line 5

def pages
  @pages
end

Instance Method Details

#buildObject



6
7
8
# File 'lib/middleman_toc/builder.rb', line 6

def build
  Node.new(0, nil, nil, nodes(manifest))
end