Class: ATSPI::Accessible::Action
- Inherits:
-
Object
- Object
- ATSPI::Accessible::Action
- Defined in:
- lib/atspi/accessible/action.rb
Overview
Wraps libatspi’s AtspiAction
Instance Method Summary collapse
-
#description ⇒ String
Its description.
-
#do_it! ⇒ true, false
Tries to execute the action.
-
#inspect ⇒ String
Itself as an inspectable string.
-
#key_binding ⇒ String
Its key binding.
-
#name ⇒ String
Its name.
Instance Method Details
#description ⇒ String
Returns its description.
20 21 22 |
# File 'lib/atspi/accessible/action.rb', line 20 def description @native.action_description(@idx) end |
#do_it! ⇒ true, false
Tries to execute the action
36 37 38 |
# File 'lib/atspi/accessible/action.rb', line 36 def do_it! @native.do_action(@idx) end |
#inspect ⇒ String
Returns itself as an inspectable string.
41 42 43 |
# File 'lib/atspi/accessible/action.rb', line 41 def inspect "#<#{self.class.name}:0x#{'%x14' % __id__} @name=#{name.inspect} @description=#{description.inspect}>" end |
#key_binding ⇒ String
Returns its key binding.
27 28 29 |
# File 'lib/atspi/accessible/action.rb', line 27 def key_binding @native.key_binding(@idx) end |
#name ⇒ String
Returns its name.
13 14 15 |
# File 'lib/atspi/accessible/action.rb', line 13 def name @native.action_name(@idx) end |