Class: RDocF95::Markup::ListItem

Inherits:
ListBase show all
Defined in:
lib/rdoc-f95/markup/fragments.rb

Constant Summary

Constants inherited from ListBase

RDocF95::Markup::ListBase::LIST_TYPES

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, type_name

Constructor Details

This class inherits a constructor from RDocF95::Markup::Fragment

Instance Method Details

#to_sObject



86
87
88
89
90
91
92
93
94
# File 'lib/rdoc-f95/markup/fragments.rb', line 86

def to_s
  text = if [:NOTE, :LABELED].include? type then
           "#{@param}: #{@txt}"
         else
           @txt
         end

  "L#@level: #{type} #{self.class.name.split('::')[-1]}\n#{text}"
end