Method: Motion::ComponentConnection#process_motion

Defined in:
lib/motion/component_connection.rb

#process_motion(motion, event = nil) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/motion/component_connection.rb', line 43

def process_motion(motion, event = nil)
  timing("Processed #{motion}") do
    component.process_motion(motion, event)
  end

  true
rescue => error
  handle_error(error, "processing #{motion}")

  false
end