Exception: Marko::ParserError

Inherits:
MarkoError
  • Object
show all
Defined in:
lib/marko/errors.rb

Overview

Parser error

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filenameObject (readonly)

Returns the value of attribute filename.



9
10
11
# File 'lib/marko/errors.rb', line 9

def filename
  @filename
end

#linenoObject (readonly)

Returns the value of attribute lineno.



10
11
12
# File 'lib/marko/errors.rb', line 10

def lineno
  @lineno
end

#markupObject (readonly)

Returns the value of attribute markup.



11
12
13
# File 'lib/marko/errors.rb', line 11

def markup
  @markup
end