Exception: Rabbit::InvalidMotionError
- Defined in:
- lib/rabbit/error.rb
Constant Summary
Constants included from GetText
Instance Attribute Summary collapse
-
#motion ⇒ Object
readonly
Returns the value of attribute motion.
Instance Method Summary collapse
-
#initialize(motion) ⇒ InvalidMotionError
constructor
A new instance of InvalidMotionError.
Methods included from GetText
Constructor Details
#initialize(motion) ⇒ InvalidMotionError
Returns a new instance of InvalidMotionError.
184 185 186 187 |
# File 'lib/rabbit/error.rb', line 184 def initialize(motion) @motion = motion super(_("invalid motion: %s") % @motion) end |
Instance Attribute Details
#motion ⇒ Object (readonly)
Returns the value of attribute motion.
183 184 185 |
# File 'lib/rabbit/error.rb', line 183 def motion @motion end |