Method: H1Parser#parse
- Defined in:
- lib/Parsers/H1Parser.rb
#parse(paragraph) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/Parsers/H1Parser.rb', line 8 def parse(paragraph) if paragraph.type == 'H1' "# #{paragraph.text}" else if !nextParser.nil? nextParser.parse(paragraph) end end end |