Module: HParser::Block::Indent
Instance Method Summary collapse
Instance Method Details
#_to_text_ ⇒ Object
51 |
# File 'lib/hparser/text.rb', line 51 alias_method :_to_text_,:to_text |
#text_content ⇒ Object
48 49 50 |
# File 'lib/hparser/text.rb', line 48 def text_content self.content end |
#to_text ⇒ Object
52 53 54 |
# File 'lib/hparser/text.rb', line 52 def to_text self._to_text_.split("\n").map{|line| ' '+line}.join("\n") end |