Sha256: 227fc57da6e0ea897c06deb314118e1b5b56c441adfdd0bab53097ba84b5a01e
Contents?: true
Size: 389 Bytes
Versions: 5
Compression:
Stored size: 389 Bytes
Contents
module Arx # Helper entity/model representing a link on an arXiv paper. # @private class Link include HappyMapper tag 'link' attribute :title, String attribute :rel, String attribute :type, String attribute :href, String %w[pdf doi].each do |link_type| define_method "#{link_type}?" do @title == link_type end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
arx-1.1.0 | lib/arx/entities/link.rb |
arx-1.0.1 | lib/arx/entities/link.rb |
arx-1.0.0 | lib/arx/entities/link.rb |
arx-0.3.2 | lib/arx/entities/link.rb |
arx-0.3.1 | lib/arx/entities/link.rb |