Module: HParser::Text
- Included in:
- Block::Empty, Block::Head, Block::Indent, Block::ListItem, Block::P, Block::Quote, Block::TableCell, Block::TableHeader
- Defined in:
- lib/hparser/text.rb
Overview
Instance Method Summary collapse
Instance Method Details
#to_text ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/hparser/text.rb', line 15 def to_text content = text_content if content.class == Array then content = content.map{|x| x.to_text}.join end content end |