Exception: Rabbit::NotFileError

Inherits:
SourceUnreadableError show all
Defined in:
lib/rabbit/error.rb

Constant Summary

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GetText

included

Constructor Details

#initialize(name) ⇒ NotFileError

Returns a new instance of NotFileError.



118
119
120
121
# File 'lib/rabbit/error.rb', line 118

def initialize(name)
  @name = name
  super(_("not a file: %s") % @name)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



117
118
119
# File 'lib/rabbit/error.rb', line 117

def name
  @name
end