Method: Mechanize::Page::Image#caption
- Defined in:
- lib/mechanize/page/image.rb
#caption ⇒ Object Also known as: text
The caption of the image. In order of preference, the #title, #alt, or empty string “”.
32 33 34 |
# File 'lib/mechanize/page/image.rb', line 32 def caption title || alt || '' end |