Class: UnderOs::UI::Events::Event

Inherits:
Events::Event show all
Defined in:
lib/under_os/ui/utils/events.rb

Instance Attribute Summary collapse

Attributes inherited from Events::Event

#name, #params

Instance Method Summary collapse

Methods inherited from Events::Event

#method_missing

Constructor Details

#initialize(view, event, params = {}) ⇒ Event

Returns a new instance of Event.



69
70
71
72
73
# File 'lib/under_os/ui/utils/events.rb', line 69

def initialize(view, event, params={})
  @target = view
  event, r = view.__send__ :find_recognizer_from, event.class if event.is_a?(UIGestureRecognizer)
  super event, params
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UnderOs::Events::Event

Instance Attribute Details

#targetObject (readonly)

Returns the value of attribute target.



67
68
69
# File 'lib/under_os/ui/utils/events.rb', line 67

def target
  @target
end