Module: Craig::Node::HasMap

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

Instance Method Summary collapse

Instance Method Details

#has_map?Boolean

The listing includes a map.

Returns:

  • (Boolean)


67
68
69
# File 'lib/craig/node.rb', line 67

def has_map?
  !!dom.at_css(".itempx").text[/map/]
end