Module: ATSPI::Accessible::Text::Hypertext
- Included in:
- ATSPI::Accessible::Text
- Defined in:
- lib/atspi/accessible/text/hypertext.rb
Overview
Wraps libatspi’s hypertext interface.
Attributes & States collapse
-
#hyperlinks ⇒ Array<Hyperlink>
(also: #links)
Its hyperlinks.
-
#hypertext? ⇒ true, false
Checks if it is a hypertext.
Instance Method Details
#hyperlinks ⇒ Array<Hyperlink> Also known as: links
Returns its hyperlinks. Will be an empty array if it is not a hypertext.
19 20 21 22 23 24 25 |
# File 'lib/atspi/accessible/text/hypertext.rb', line 19 def hyperlinks if hypertext? @native.n_links.times.map{ |idx| Hyperlink.new(@native, @native.link(idx)) } else [] end end |
#hypertext? ⇒ true, false
Checks if it is a hypertext.
10 11 12 |
# File 'lib/atspi/accessible/text/hypertext.rb', line 10 def hypertext? not @native.hypertext_iface.nil? end |