Exception: PandocRb::ParsecError
- Defined in:
- lib/pandoc_rb/parsec_error.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#input ⇒ Object
Returns the value of attribute input.
-
#line ⇒ Object
Returns the value of attribute line.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#source_name ⇒ Object
Returns the value of attribute source_name.
Instance Method Summary collapse
-
#initialize(json) ⇒ ParsecError
constructor
A new instance of ParsecError.
Constructor Details
#initialize(json) ⇒ ParsecError
Returns a new instance of ParsecError.
6 7 8 9 10 |
# File 'lib/pandoc_rb/parsec_error.rb', line 6 def initialize(json) self.input, parse_error = json source_pos, self. = parse_error self.source_name, self.line, self.column = source_pos end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
4 5 6 |
# File 'lib/pandoc_rb/parsec_error.rb', line 4 def column @column end |
#input ⇒ Object
Returns the value of attribute input.
4 5 6 |
# File 'lib/pandoc_rb/parsec_error.rb', line 4 def input @input end |
#line ⇒ Object
Returns the value of attribute line.
4 5 6 |
# File 'lib/pandoc_rb/parsec_error.rb', line 4 def line @line end |
#messages ⇒ Object
Returns the value of attribute messages.
4 5 6 |
# File 'lib/pandoc_rb/parsec_error.rb', line 4 def @messages end |
#source_name ⇒ Object
Returns the value of attribute source_name.
4 5 6 |
# File 'lib/pandoc_rb/parsec_error.rb', line 4 def source_name @source_name end |