Class: Dommy::EventTarget::Listener

Inherits:
Struct
  • Object
show all
Defined in:
lib/dommy/event.rb

Instance Method Summary collapse

Instance Method Details

#once?Boolean

Returns:

  • (Boolean)


91
92
93
94
95
96
97
98
# File 'lib/dommy/event.rb', line 91

def once?
  case options
  when Hash
    options["once"] || options[:once]
  else
    false
  end
end