Class: Moon::WrappedEvent Abstract

Inherits:
Event show all
Defined in:
lib/moon/packages/std/event.rb

Overview

This class is abstract.

Event used for wrapping other events. This is not used on its own and is normally subclassed.

Direct Known Subclasses

WrappedStateEvent

Instance Attribute Summary collapse

Attributes inherited from Event

#id, #type

Instance Method Summary collapse

Methods inherited from Event

make_filter

Constructor Details

#initialize(event, parent, type) ⇒ WrappedEvent

Returns a new instance of WrappedEvent.

Parameters:


156
157
158
159
160
# File 'lib/moon/packages/std/event.rb', line 156

def initialize(event, parent, type)
  @original_event = event
  @parent = parent
  super type
end

Instance Attribute Details

#original_eventEvent

Returns the original event.

Returns:

  • (Event)

    the original event


148
149
150
# File 'lib/moon/packages/std/event.rb', line 148

def original_event
  @original_event
end

#parentRenderContainer

Returns parent render context of this event.

Returns:


151
152
153
# File 'lib/moon/packages/std/event.rb', line 151

def parent
  @parent
end