Exception: Pupu::AssetNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pupu/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ AssetNotFound

Returns a new instance of AssetNotFound.



18
19
20
21
# File 'lib/pupu/exceptions.rb', line 18

def initialize(path)
  @path = path
  @message = "File #{@path} doesn't exist."
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



17
18
19
# File 'lib/pupu/exceptions.rb', line 17

def message
  @message
end

#pathObject

Returns the value of attribute path.



17
18
19
# File 'lib/pupu/exceptions.rb', line 17

def path
  @path
end