Exception: Mactag::GemNotFoundError
- Inherits:
-
MactagError
- Object
- StandardError
- MactagError
- Mactag::GemNotFoundError
- Defined in:
- lib/mactag/errors.rb
Instance Attribute Summary collapse
-
#gem ⇒ Object
readonly
Returns the value of attribute gem.
Instance Method Summary collapse
-
#initialize(gem) ⇒ GemNotFoundError
constructor
A new instance of GemNotFoundError.
- #to_s ⇒ Object
Constructor Details
#initialize(gem) ⇒ GemNotFoundError
Returns a new instance of GemNotFoundError.
20 21 22 |
# File 'lib/mactag/errors.rb', line 20 def initialize(gem) @gem = gem end |
Instance Attribute Details
#gem ⇒ Object (readonly)
Returns the value of attribute gem.
18 19 20 |
# File 'lib/mactag/errors.rb', line 18 def gem @gem end |
Instance Method Details
#to_s ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/mactag/errors.rb', line 24 def to_s if gem.version "Gem #{gem.name} with version #{gem.version} not found" else "Gem #{gem.name} not found" end end |