Exception: Rabbit::CantAllocateColorError
- Defined in:
- lib/rabbit/error.rb
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
Instance Method Summary collapse
-
#initialize(color) ⇒ CantAllocateColorError
constructor
A new instance of CantAllocateColorError.
Methods included from GetText
Constructor Details
#initialize(color) ⇒ CantAllocateColorError
Returns a new instance of CantAllocateColorError.
106 107 108 109 |
# File 'lib/rabbit/error.rb', line 106 def initialize(color) @color = color super(_("can't allocate color: %s"), color) end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
105 106 107 |
# File 'lib/rabbit/error.rb', line 105 def color @color end |