Method: Glyph::Utils#titled_sections

Defined in:
lib/glyph/utils.rb

#titled_sectionsObject

Returns a list of macro names corresponding to sections that commonly have a title

Since:

  • 0.4.0



148
149
150
151
# File 'lib/glyph/utils.rb', line 148

def titled_sections
  (Glyph.macro_aliases_for(:section)+
   [:section]-[:frontmatter, :bodymatter, :backmatter]).uniq
end