Exception: Rabbit::CantAllocateColorError
- Defined in:
- lib/rabbit/rabbit.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
N_, _, bindtextdomain, locale=
Constructor Details
#initialize(color) ⇒ CantAllocateColorError
Returns a new instance of CantAllocateColorError.
120 121 122 123 |
# File 'lib/rabbit/rabbit.rb', line 120 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.
119 120 121 |
# File 'lib/rabbit/rabbit.rb', line 119 def color @color end |