Exception: TomParse::ParseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- TomParse::ParseError
- Defined in:
- lib/tomparse/parse_error.rb
Overview
Raised when comment can’t be parsed, which means it’s most likely not valid TomDoc.
Instance Method Summary collapse
-
#initialize(doc) ⇒ ParseError
constructor
Create new ParseError object.
-
#message ⇒ Object
Provide access to document string.
-
#to_s ⇒ Object
Provide access to document string.
Constructor Details
#initialize(doc) ⇒ ParseError
Create new ParseError object.
11 12 13 |
# File 'lib/tomparse/parse_error.rb', line 11 def initialize(doc) @doc = doc end |
Instance Method Details
#message ⇒ Object
Provide access to document string.
18 19 20 |
# File 'lib/tomparse/parse_error.rb', line 18 def @doc end |
#to_s ⇒ Object
Provide access to document string.
25 26 27 |
# File 'lib/tomparse/parse_error.rb', line 25 def to_s @doc end |