Exception: JetBlack::NonExistentFileError
- Defined in:
- lib/jet_black/errors.rb
Instance Attribute Summary collapse
-
#expanded_path ⇒ Object
readonly
Returns the value of attribute expanded_path.
-
#raw_path ⇒ Object
readonly
Returns the value of attribute raw_path.
Instance Method Summary collapse
-
#initialize(raw_path, expanded_path) ⇒ NonExistentFileError
constructor
A new instance of NonExistentFileError.
Constructor Details
#initialize(raw_path, expanded_path) ⇒ NonExistentFileError
Returns a new instance of NonExistentFileError.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/jet_black/errors.rb', line 25 def initialize(raw_path, ) @raw_path = raw_path @expanded_path = super <<~MSG Please create the file before trying to append content. Raw path: '#{raw_path}' Expanded path: '#{}' MSG end |
Instance Attribute Details
#expanded_path ⇒ Object (readonly)
Returns the value of attribute expanded_path.
23 24 25 |
# File 'lib/jet_black/errors.rb', line 23 def @expanded_path end |
#raw_path ⇒ Object (readonly)
Returns the value of attribute raw_path.
23 24 25 |
# File 'lib/jet_black/errors.rb', line 23 def raw_path @raw_path end |