Exception: Marko::ParserError
- Inherits:
-
MarkoError
- Object
- StandardError
- MarkoError
- Marko::ParserError
- Defined in:
- lib/marko/errors.rb
Overview
Parser error
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
-
#markup ⇒ Object
readonly
Returns the value of attribute markup.
Instance Method Summary collapse
-
#initialize(msg, filename, lineno, markup) ⇒ ParserError
constructor
A new instance of ParserError.
Constructor Details
#initialize(msg, filename, lineno, markup) ⇒ ParserError
Returns a new instance of ParserError.
13 14 15 16 17 18 |
# File 'lib/marko/errors.rb', line 13 def initialize(msg, filename, lineno, markup) @filename = filename @lineno = lineno @markup = markup super(msg) end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
9 10 11 |
# File 'lib/marko/errors.rb', line 9 def filename @filename end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
10 11 12 |
# File 'lib/marko/errors.rb', line 10 def lineno @lineno end |
#markup ⇒ Object (readonly)
Returns the value of attribute markup.
11 12 13 |
# File 'lib/marko/errors.rb', line 11 def markup @markup end |