Class: Dommy::CookieChangeEvent
- Defined in:
- lib/dommy/cookie_store.rb
Constant Summary
Constants inherited from Event
Event::AT_TARGET, Event::BUBBLING_PHASE, Event::CAPTURING_PHASE, Event::NONE
Instance Attribute Summary collapse
-
#changed ⇒ Object
readonly
Returns the value of attribute changed.
-
#deleted ⇒ Object
readonly
Returns the value of attribute deleted.
Attributes inherited from Event
Instance Method Summary collapse
- #__js_get__(key) ⇒ Object
-
#initialize(type, init = nil) ⇒ CookieChangeEvent
constructor
A new instance of CookieChangeEvent.
Methods inherited from Event
#__internal_clear_propagation_flags__, #__internal_mark_trusted__, #__internal_prepare_for_dispatch__, #__internal_record_path__, #__internal_set_current_target__, #__internal_set_dispatch_flag__, #__internal_set_event_phase__, #__js_call__, #__js_set__, #bubbles?, #default_prevented?, #immediate_propagation_stopped?, #init_event, #propagation_stopped?
Methods included from Bridge::Methods
Constructor Details
#initialize(type, init = nil) ⇒ CookieChangeEvent
Returns a new instance of CookieChangeEvent.
111 112 113 114 115 |
# File 'lib/dommy/cookie_store.rb', line 111 def initialize(type, init = nil) super @changed = Array(read_init(init, "changed") || []) @deleted = Array(read_init(init, "deleted") || []) end |
Instance Attribute Details
#changed ⇒ Object (readonly)
Returns the value of attribute changed.
117 118 119 |
# File 'lib/dommy/cookie_store.rb', line 117 def changed @changed end |
#deleted ⇒ Object (readonly)
Returns the value of attribute deleted.
117 118 119 |
# File 'lib/dommy/cookie_store.rb', line 117 def deleted @deleted end |
Instance Method Details
#__js_get__(key) ⇒ Object
119 120 121 122 123 124 125 126 127 128 |
# File 'lib/dommy/cookie_store.rb', line 119 def __js_get__(key) case key when "changed" @changed when "deleted" @deleted else super end end |