Class: AndroidMotionQuery::AQClickListener
- Inherits:
-
Object
- Object
- AndroidMotionQuery::AQClickListener
- Defined in:
- lib/android_query/views.rb
Instance Attribute Summary collapse
-
#activity ⇒ Object
Returns the value of attribute activity.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
Instance Method Summary collapse
-
#initialize(activity, method_name) ⇒ AQClickListener
constructor
A new instance of AQClickListener.
- #onClick(view) ⇒ Object
Constructor Details
#initialize(activity, method_name) ⇒ AQClickListener
Returns a new instance of AQClickListener.
307 308 309 310 |
# File 'lib/android_query/views.rb', line 307 def initialize(activity, method_name) self.activity = activity self.method_name = method_name end |
Instance Attribute Details
#activity ⇒ Object
Returns the value of attribute activity.
306 307 308 |
# File 'lib/android_query/views.rb', line 306 def activity @activity end |
#method_name ⇒ Object
Returns the value of attribute method_name.
306 307 308 |
# File 'lib/android_query/views.rb', line 306 def method_name @method_name end |
Instance Method Details
#onClick(view) ⇒ Object
312 313 314 |
# File 'lib/android_query/views.rb', line 312 def onClick(view) self.activity.send(self.method_name.to_s, view) end |