Class: Orchid::PackageDoesNotExistError
- Inherits:
-
Object
- Object
- Orchid::PackageDoesNotExistError
- Defined in:
- lib/orchid/package.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#package ⇒ Object
readonly
Returns the value of attribute package.
-
#vapidirs ⇒ Object
readonly
Returns the value of attribute vapidirs.
Instance Method Summary collapse
-
#initialize(msg, package, vapidirs = nil) ⇒ PackageDoesNotExistError
constructor
A new instance of PackageDoesNotExistError.
- #to_s ⇒ Object
- #to_str ⇒ Object
Constructor Details
#initialize(msg, package, vapidirs = nil) ⇒ PackageDoesNotExistError
Returns a new instance of PackageDoesNotExistError.
34 35 36 37 38 39 40 |
# File 'lib/orchid/package.rb', line 34 def initialize(msg, package, vapidirs = nil) if vapidirs @vapidirs = vapidirs.to_a.uniq.compact end @message = msg end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
30 31 32 |
# File 'lib/orchid/package.rb', line 30 def @message end |
#package ⇒ Object (readonly)
Returns the value of attribute package.
31 32 33 |
# File 'lib/orchid/package.rb', line 31 def package @package end |
#vapidirs ⇒ Object (readonly)
Returns the value of attribute vapidirs.
32 33 34 |
# File 'lib/orchid/package.rb', line 32 def vapidirs @vapidirs end |
Instance Method Details
#to_s ⇒ Object
42 43 44 |
# File 'lib/orchid/package.rb', line 42 def to_s @message end |
#to_str ⇒ Object
46 47 48 |
# File 'lib/orchid/package.rb', line 46 def to_str @message end |