Class: Markabb::Parser
- Inherits:
-
Object
- Object
- Markabb::Parser
- Defined in:
- lib/markabb/classes/parser.rb
Overview
Markab parser Takes a Markabb::Config object and a string as an input
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(config, s) ⇒ Parser
constructor
Creates the parser object.
Constructor Details
#initialize(config, s) ⇒ Parser
Creates the parser object
8 9 10 11 12 13 |
# File 'lib/markabb/classes/parser.rb', line 8 def initialize(config, s) @string = s @config = config @output = @string parse end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
5 6 7 |
# File 'lib/markabb/classes/parser.rb', line 5 def output @output end |