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.
3 4 5 |
# File 'lib/Parsers/Parser.rb', line 3 def initialize() @nextParser = nil end |
Instance Attribute Details
#nextParser ⇒ Object
Returns the value of attribute nextParser.
2 3 4 |
# File 'lib/Parsers/Parser.rb', line 2 def nextParser @nextParser end |
Instance Method Details
#parse(paragraph) ⇒ Object
7 8 9 |
# File 'lib/Parsers/Parser.rb', line 7 def parse(paragraph) end |
#setNext(parser) ⇒ Object
11 12 13 |
# File 'lib/Parsers/Parser.rb', line 11 def setNext(parser) @nextParser = parser end |