Class: SM::Heading

Inherits:
Paragraph show all
Defined in:
lib/rdoc/markup/simple_markup/fragments.rb

Constant Summary

Constants inherited from Fragment

Fragment::TYPE_MAP

Instance Attribute Summary

Attributes inherited from Fragment

#level, #param, #txt, #type

Instance Method Summary collapse

Methods inherited from Fragment

#add_text, for, #initialize, #to_s, type_name

Constructor Details

This class inherits a constructor from SM::Fragment

Instance Method Details

#head_levelObject



63
64
65
# File 'lib/rdoc/markup/simple_markup/fragments.rb', line 63

def head_level
  @param.to_i
end