Class: Motion::Speech::EventBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/motion/speech/event_block.rb

Constant Summary collapse

Events =
%w(start finish cancel pause resume).freeze

Instance Method Summary collapse

Instance Method Details

#call(event, speaker) ⇒ Object


17
18
19
20
# File 'lib/motion/speech/event_block.rb', line 17

def call(event, speaker)
  block = send(event)
  block.call(speaker) unless block.nil?
end