Exception: JetBlack::NonExistentFileError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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, expanded_path)
  @raw_path = raw_path
  @expanded_path = expanded_path

  super <<~MSG
    Please create the file before trying to append content.
    Raw path: '#{raw_path}'
    Expanded path: '#{expanded_path}'
  MSG
end

Instance Attribute Details

#expanded_pathObject (readonly)

Returns the value of attribute expanded_path.



23
24
25
# File 'lib/jet_black/errors.rb', line 23

def expanded_path
  @expanded_path
end

#raw_pathObject (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