Exception: XmlSpec::MissingFile

Inherits:
Error
  • Object
show all
Defined in:
lib/xml_spec/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingFile

Returns a new instance of MissingFile.



38
39
40
# File 'lib/xml_spec/errors.rb', line 38

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



36
37
38
# File 'lib/xml_spec/errors.rb', line 36

def path
  @path
end

Instance Method Details

#to_sObject



42
43
44
# File 'lib/xml_spec/errors.rb', line 42

def to_s
  "No XML file at #{path}"
end