Class: UnderOs::UI::Events::Event
- Inherits:
-
Events::Event
- Object
- Events::Event
- UnderOs::UI::Events::Event
- Defined in:
- lib/under_os/ui/utils/events.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Attributes inherited from Events::Event
Instance Method Summary collapse
-
#initialize(view, event, params = {}) ⇒ Event
constructor
A new instance of Event.
Methods inherited from Events::Event
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
#target ⇒ Object (readonly)
Returns the value of attribute target.
67 68 69 |
# File 'lib/under_os/ui/utils/events.rb', line 67 def target @target end |