Class: FallbackParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/Parsers/FallbackParser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Parser

#initialize, #setNext

Constructor Details

This class inherits a constructor from Parser

Instance Attribute Details

#nextParserObject

Returns the value of attribute nextParser.



8
9
10
# File 'lib/Parsers/FallbackParser.rb', line 8

def nextParser
  @nextParser
end

Instance Method Details

#parse(paragraph) ⇒ Object



9
10
11
12
# File 'lib/Parsers/FallbackParser.rb', line 9

def parse(paragraph)
    Helper.makeWarningText("Undefined Paragraph Type: #{paragraph.type}, will treat as plain text temporarily.")
    "#{paragraph.text}"
end