Exception: Rsxml::Sexp::ComparisonError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rsxml/sexp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, path) ⇒ ComparisonError

Returns a new instance of ComparisonError.



55
56
57
58
# File 'lib/rsxml/sexp.rb', line 55

def initialize(msg, path)
  super("[#{path}]: #{msg}")
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



54
55
56
# File 'lib/rsxml/sexp.rb', line 54

def path
  @path
end