class XMLScan::Error
Attributes
lineno[R]
path[R]
Public Class Methods
new(msg, path = nil, lineno = nil)
click to toggle source
Calls superclass method
# File lib/xmlscan/visitor.rb 17 def initialize(msg, path = nil, lineno = nil) 18 super msg 19 @path = path 20 @lineno = lineno 21 end
Public Instance Methods
to_s()
click to toggle source
Calls superclass method
# File lib/xmlscan/visitor.rb 25 def to_s 26 if @lineno and @path then 27 "#{@path}:#{@lineno}:#{super}" 28 else 29 super 30 end 31 end