Exception: JsonSpec::MissingFile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingFile

Returns a new instance of MissingFile.



26
27
28
# File 'lib/json_spec/errors.rb', line 26

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



24
25
26
# File 'lib/json_spec/errors.rb', line 24

def path
  @path
end

Instance Method Details

#to_sObject



30
31
32
# File 'lib/json_spec/errors.rb', line 30

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