Method: FLV::Edit::Processor::Dispatcher#initialize

Defined in:
lib/flvedit/processor/dispatcher.rb

#initializeObject



43
44
45
46
47
48
49
# File 'lib/flvedit/processor/dispatcher.rb', line 43

def initialize(*)
  super
  on_calls = self.class.instance_methods(false).select{|m| m.to_s.start_with?("on_")}.map(&:to_sym) #Note: to_s needed for ruby 1.9, to_sym for ruby 1.8
  unless (potential_errors = on_calls - ALL_EVENTS).empty?
    warn "The following are not events: #{potential_errors.join(',')} (class #{self.class})"
  end
end