Exception: Rabbit::ImmutableSourceTypeError

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

included

Constructor Details

#initialize(source_type) ⇒ ImmutableSourceTypeError

Returns a new instance of ImmutableSourceTypeError.



165
166
167
168
# File 'lib/rabbit/rabbit.rb', line 165

def initialize(source_type)
  @source_type = source_type
  super(_("immutable source type: %s") % @source_type)
end

Instance Attribute Details

#source_typeObject (readonly)

Returns the value of attribute source_type.



164
165
166
# File 'lib/rabbit/rabbit.rb', line 164

def source_type
  @source_type
end