Class: MiddlemanToc::Title

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pageObject

Returns the value of attribute page

Returns:

  • (Object)

    the current value of page



2
3
4
# File 'lib/middleman_toc/title.rb', line 2

def page
  @page
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



2
3
4
# File 'lib/middleman_toc/title.rb', line 2

def path
  @path
end

Instance Method Details

#titleObject



3
4
5
# File 'lib/middleman_toc/title.rb', line 3

def title
  from_data || from_html || from_path
end