Exception: Rabbit::CantAllocateColorError

Inherits:
Error
  • Object
show all
Defined in:
lib/rabbit/rabbit.rb

Constant Summary

Constants included from GetText

GetText::DOMAIN

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#colorObject (readonly)

Returns the value of attribute color.



119
120
121
# File 'lib/rabbit/rabbit.rb', line 119

def color
  @color
end