lib/rubo/event_emitter.rb
# Remove a listener from the id or type for the specified event.
#
# @overload remove_listner(id)
#   @param id [Integer]
# @overload remove_listner(type)
#   @param type [Symbol]
# @return [void]
Remove a listener from the id or type for the specified event.
Remove a listener from the id or type for the specified event .
def remove_listener(id_or_type)
      if id_or_type.is_a?(Integer)
        events.delete_if { |e| e.id == id_or_type }
      else
        type = id_or_type.to_sym
        events.delete_if { |e| e.type == type }
      end
    end
def remove_listener ( id_or_type ) if id_or_type . is_a? ( Integer ) events . delete_if { | e | e . id == id_or_type } else type = id_or_type . to_sym events . delete_if { | e | e . type == type } end end
Remove a listener from the id or type for the specified event.
Remove a listener from the id or type for the specified event .
None
void
id_or_type
<not_specific>
overload
remove_listner(id) @param id [Integer]
remove_listner ( id ) @param id [ Integer ]
overload
remove_listner(type) @param type [Symbol]
remove_listner ( type ) @param type [ Symbol ]