Exception: JsonSpec::MissingFile
- Defined in:
- lib/json_spec/errors.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ MissingFile
constructor
A new instance of MissingFile.
- #to_s ⇒ Object
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
#path ⇒ Object (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_s ⇒ Object
30 31 32 |
# File 'lib/json_spec/errors.rb', line 30 def to_s "No JSON file at #{path}" end |