Module: Craig::Node::HasImage

Included in:
Listing::Base
Defined in:
lib/craig/node.rb

Instance Method Summary collapse

Instance Method Details

#has_image?Boolean

The listing includes a pic/image.

Returns:

  • (Boolean)


42
43
44
# File 'lib/craig/node.rb', line 42

def has_image?
  !!dom.at_css(".itempx").text[/(img|pic)/]
end