Class: GrapeDoc::ApiDocParts::H1

Inherits:
StringObject show all
Defined in:
lib/grape/doc/doc_class/header.rb

Direct Known Subclasses

H2, H3, H4, H5, H6

Instance Method Summary collapse

Methods inherited from StringBasic

#markdown, markdown, markdown=, #to_textile

Constructor Details

#initialize(*args) ⇒ H1

Returns a new instance of H1.



27
28
29
30
31
# File 'lib/grape/doc/doc_class/header.rb', line 27

def initialize(*args)
  super
  @opts['id']= SecureRandom.uuid
  TOC.add_header(self)
end