lib/volt/reactive/events.rb
def trigger_for_methods!(event, *method_names)
    trigger_by_scope!(event, [], nil) do |scope|
      if scope
        method_name = scope.first

        method_names.include?(method_name)
      else
        false
      end
    end
  end
# Takes an event and a list of method names, and triggers the event for each listener
# coming off of those methods.
Takes an event and a list of method names, and triggers the event for each listener
coming off of those methods.
Takes an event and a list of method names and triggers the event for each listener coming off of those methods .
def trigger_for_methods!(event, *method_names)
    trigger_by_scope!(event, [], nil) do |scope|
      if scope
        method_name = scope.first
        method_names.include?(method_name)
      else
        false
      end
    end
  end
def trigger_for_methods! ( event , * method_names ) trigger_by_scope! ( event , [ ] , nil ) do | scope | if scope method_name = scope . first method_names . include? ( method_name ) else false end end end
Takes an event and a list of method names, and triggers the event for each listener
coming off of those methods.
Takes an event and a list of method names and triggers the event for each listener coming off of those methods .
event
method_names