Exception: Rabbit::InvalidMotionError

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(motion) ⇒ InvalidMotionError

Returns a new instance of InvalidMotionError.



198
199
200
201
# File 'lib/rabbit/rabbit.rb', line 198

def initialize(motion)
  @motion = motion
  super(_("invalid motion: %s") % @motion)
end

Instance Attribute Details

#motionObject (readonly)

Returns the value of attribute motion.



197
198
199
# File 'lib/rabbit/rabbit.rb', line 197

def motion
  @motion
end