Sha256: b8324e6bc8197711df2c8e9ce13be8e9818fccf0d77dcfddc7d019db11ffb6c0

Contents?: true

Size: 632 Bytes

Versions: 1

Compression:

Stored size: 632 Bytes

Contents

module Nokogiri::Decorators::XBEL
  module Bookmark
    include Entry

    def modified
      if value = self['modified'] then Date.parse value end
    end
    def modified=(value)
      self['modified'] = value.to_s
    end
    def visited
      if value = self['visited'] then Date.parse value end
    end
    def visited=(value)
      self['visited'] = value.to_s
    end
    def visit
      self.visited = Date.today
    end
    def href
      if value = self['href'] then value end
    end
    def href=(value)
      self.modified = Date.today
      self['href'] = value
    end
    def bookmark?
      true
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xbel-0.2.0 lib/nokogiri/decorators/xbel/bookmark.rb