lib/amazon_associate/element.rb
def search_and_convert(path)
      elements = self./(path)
      return unless elements
      elements = elements.map{|element| Element.new(element)}
      return elements.first if elements.size == 1
      elements
    end
# Find Hpricot::Elements matching the given path, and convert to AmazonAssociate::Element.
# Returns an array AmazonAssociate::Elements if more than Hpricot::Elements size is greater than 1.
Find Hpricot::Elements matching the given path, and convert to AmazonAssociate::Element.
Returns an array AmazonAssociate::Elements if more than Hpricot::Elements size is greater than 1.
Find Hpricot :: Elements matching the given path and convert to AmazonAssociate :: Element . Returns an array AmazonAssociate :: Elements if more than Hpricot :: Elements size is greater than 1 .
def search_and_convert(path)
      elements = self./(path)
      return unless elements
      elements = elements.map{|element| Element.new(element)}
      return elements.first if elements.size == 1
      elements
    end
def search_and_convert ( path ) elements = self . / ( path ) return unless elements elements = elements . map { | element | Element . new ( element ) } return elements . first if elements . size == 1 elements end
Find Hpricot::Elements matching the given path, and convert to AmazonAssociate::Element.
Find Hpricot :: Elements matching the given path and convert to AmazonAssociate :: Element .
path