Exception: Motion::MotionNotMapped
- Inherits:
-
ComponentError
- Object
- StandardError
- Error
- ComponentError
- Motion::MotionNotMapped
- Defined in:
- lib/motion/errors.rb
Instance Attribute Summary collapse
-
#motion ⇒ Object
readonly
Returns the value of attribute motion.
Attributes inherited from ComponentError
Instance Method Summary collapse
-
#initialize(component, motion) ⇒ MotionNotMapped
constructor
A new instance of MotionNotMapped.
Constructor Details
#initialize(component, motion) ⇒ MotionNotMapped
Returns a new instance of MotionNotMapped.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/motion/errors.rb', line 23 def initialize(component, motion) super( component, "No component motion handler mapped for motion `#{motion}` in " \ "component `#{component.class}`.\n" \ "\n" \ "Hint: Consider adding `map_motion :#{motion}` to `#{component.class}`." ) @motion = motion end |
Instance Attribute Details
#motion ⇒ Object (readonly)
Returns the value of attribute motion.
21 22 23 |
# File 'lib/motion/errors.rb', line 21 def motion @motion end |