class TomParse::ParseError
Raised when comment can't be parsed, which means it's most likely not valid TomDoc
.
Public Class Methods
new(doc)
click to toggle source
Create new ParseError
object.
doc - document string
# File lib/tomparse/parse_error.rb, line 11 def initialize(doc) @doc = doc end
Public Instance Methods
message()
click to toggle source
Provide access to document string.
Returns String.
# File lib/tomparse/parse_error.rb, line 18 def message @doc end
to_s()
click to toggle source
Provide access to document string.
Returns String.
# File lib/tomparse/parse_error.rb, line 25 def to_s @doc end