Module: Craig::Node::HasImage
- Included in:
- Listing::Base
- Defined in:
- lib/craig/node.rb
Instance Method Summary collapse
-
#has_image? ⇒ Boolean
The listing includes a pic/image.
Instance Method Details
#has_image? ⇒ Boolean
The listing includes a pic/image.
42 43 44 |
# File 'lib/craig/node.rb', line 42 def has_image? !!dom.at_css(".itempx").text[/(img|pic)/] end |