Sha256: fd8e26f033668db73f9f219b16fa1199f3e77ba5c27a3fba57808d78bdd377ac

Contents?: true

Size: 253 Bytes

Versions: 1

Compression:

Stored size: 253 Bytes

Contents

module Element
  def title
    at("title").content
  end

  def url
    self["about"].strip_http
  end

  def date_str
    at("dc|date").content
  end

  def date
    DateTime.parse(date_str)
  end
end

class Nokogiri::XML::Element
  include Element
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crags-2.2.0 lib/ext/element.rb