Exception: Gem::FilePermissionError
- Defined in:
- lib/rubygems/exceptions.rb
Overview
Signals that a file permission error is preventing the user from operating on the given directory.
Instance Attribute Summary collapse
-
#directory ⇒ Object
readonly
Returns the value of attribute directory.
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(directory) ⇒ FilePermissionError
constructor
A new instance of FilePermissionError.
Constructor Details
#initialize(directory) ⇒ FilePermissionError
Returns a new instance of FilePermissionError.
69 70 71 72 73 |
# File 'lib/rubygems/exceptions.rb', line 69 def initialize directory @directory = directory super "You don't have write permissions for the #{directory} directory." end |
Instance Attribute Details
#directory ⇒ Object (readonly)
Returns the value of attribute directory.
67 68 69 |
# File 'lib/rubygems/exceptions.rb', line 67 def directory @directory end |