Class: HParser::Block::Pre
- Includes:
- Collectable, Indent, Hatena, Html, Latex
- Defined in:
- lib/hparser/block/pre.rb,
lib/hparser/html.rb,
lib/hparser/text.rb,
lib/hparser/latex.rb,
lib/hparser/hatena.rb
Overview
Pre format.
Instance Attribute Summary
Attributes inherited from Pair
Instance Method Summary collapse
Methods included from Hatena
Methods included from Indent
#_to_text_, #text_content, #to_text
Methods included from Text
Methods included from Html
Methods inherited from Pair
#==, get, #initialize, spliter
Constructor Details
This class inherits a constructor from HParser::Block::Pair
Instance Method Details
#hatena_filter(c) ⇒ Object
65 66 67 |
# File 'lib/hparser/hatena.rb', line 65 def hatena_filter c ">|\n"+c+"\n|<" end |
#to_latex ⇒ Object
84 85 86 87 |
# File 'lib/hparser/latex.rb', line 84 def to_latex content = super %Q[\\begin{verbatim}\n#{content}\n\\end{verbatim}\n] end |