Class: SM::Verbatim

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

Overview

Verbatim code contains lines that don't get wrapped.

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

for, #initialize, #to_s, type_name

Constructor Details

This class inherits a constructor from SM::Fragment

Instance Method Details

#add_text(txt) ⇒ Object



109
110
111
# File 'lib/rdoc/markup/simple_markup/fragments.rb', line 109

def add_text(txt)
  @txt << txt.chomp << "\n"
end