Class: Parser
- Inherits:
-
Object
- Object
- Parser
- Defined in:
- lib/Parsers/Parser.rb
Direct Known Subclasses
BQParser, CodeBlockParser, FallbackParser, H1Parser, H2Parser, H3Parser, H4Parser, IMGParser, IframeParser, MIXTAPEEMBEDParser, OLIParser, PParser, PQParser, PREParser, ULIParser
Instance Attribute Summary collapse
-
#nextParser ⇒ Object
Returns the value of attribute nextParser.
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #parse(paragraph) ⇒ Object
- #setNext(parser) ⇒ Object
Constructor Details
#initialize ⇒ Parser
Returns a new instance of Parser.
5 6 7 |
# File 'lib/Parsers/Parser.rb', line 5 def initialize() @nextParser = nil end |
Instance Attribute Details
#nextParser ⇒ Object
Returns the value of attribute nextParser.
4 5 6 |
# File 'lib/Parsers/Parser.rb', line 4 def nextParser @nextParser end |
Instance Method Details
#parse(paragraph) ⇒ Object
9 10 11 |
# File 'lib/Parsers/Parser.rb', line 9 def parse(paragraph) end |
#setNext(parser) ⇒ Object
13 14 15 |
# File 'lib/Parsers/Parser.rb', line 13 def setNext(parser) @nextParser = parser end |