Exception: Motion::MotionNotMapped

Inherits:
ComponentError show all
Defined in:
lib/motion/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ComponentError

#component

Instance Method Summary collapse

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

#motionObject (readonly)

Returns the value of attribute motion.



21
22
23
# File 'lib/motion/errors.rb', line 21

def motion
  @motion
end