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.



36
37
38
39
# File 'lib/grape/doc/doc_class/header.rb', line 36

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