Class: ActiveMatrix::Event

Inherits:
Object
  • Object
show all
Extended by:
Extensions
Defined in:
lib/active_matrix/events.rb

Direct Known Subclasses

ErrorEvent, MatrixEvent

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions

events, ignore_inspect

Constructor Details

#initialize(sender) ⇒ Event

Returns a new instance of Event.



42
43
44
45
# File 'lib/active_matrix/events.rb', line 42

def initialize(sender)
  @sender = sender
  @handled = false
end

Instance Attribute Details

#handled=(value) ⇒ Object (writeonly)

Sets the attribute handled

Parameters:

  • value

    the value to set the attribute handled to.



38
39
40
# File 'lib/active_matrix/events.rb', line 38

def handled=(value)
  @handled = value
end

Instance Method Details

#handled?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/active_matrix/events.rb', line 47

def handled?
  @handled
end

#matches?(_filter) ⇒ Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/active_matrix/events.rb', line 51

def matches?(_filter)
  true
end