Class: ATSPI::Accessible::Document
- Inherits:
-
Object
- Object
- ATSPI::Accessible::Document
- Defined in:
- lib/atspi/accessible/document.rb
Overview
Wraps libatspi’s AtspiDocument
Instance Method Summary collapse
-
#attributes ⇒ Hash<String => String>
Its attributes.
-
#inspect ⇒ String
Itself as an inspectable string.
-
#locale ⇒ String
Its locale.
Instance Method Details
#attributes ⇒ Hash<String => String>
Returns its attributes.
17 18 19 |
# File 'lib/atspi/accessible/document.rb', line 17 def attributes @native.document_attributes.to_h end |
#inspect ⇒ String
Returns itself as an inspectable string.
22 23 24 |
# File 'lib/atspi/accessible/document.rb', line 22 def inspect "#<#{self.class.name}:0x#{'%x14' % __id__} #{attributes.map{ |k, v| "@#{k}=#{v.inspect}" }.join(' ')}>" end |
#locale ⇒ String
Returns its locale.
11 12 13 |
# File 'lib/atspi/accessible/document.rb', line 11 def locale @native.locale end |