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.
99 100 101 102 |
# File 'lib/rabbit/error.rb', line 99 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.
98 99 100 |
# File 'lib/rabbit/error.rb', line 98 def color @color end |