Class: RDocF95::Markup::Verbatim

Inherits:
Fragment
  • Object
show all
Defined in:
lib/rdoc-f95/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 RDocF95::Markup::Fragment

Instance Method Details

#add_text(txt) ⇒ Object



116
117
118
# File 'lib/rdoc-f95/markup/fragments.rb', line 116

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