Module: HParser::Block::Indent

Includes:
Text
Included in:
Pre, Quote, SuperPre
Defined in:
lib/hparser/text.rb

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_contentObject



48
49
50
# File 'lib/hparser/text.rb', line 48

def text_content
  self.content
end

#to_textObject



52
53
54
# File 'lib/hparser/text.rb', line 52

def to_text
  self._to_text_.split("\n").map{|line| '  '+line}.join("\n")
end