class EPUB::Metadata::Identifier
Attributes
scheme[RW]
@note This is ad-hoc @todo Define and include OPF module for opf:scheme attribute @todo Define general way to handle with identifier-type refiners
Public Instance Methods
isbn?()
click to toggle source
@note This is ad-hoc @todo Define and include OPF module for opf:scheme attribute @todo Define general way to handle with identifier-type refiners
# File lib/epub/metadata.rb, line 124 def isbn? scheme == 'ISBN' or content.to_s.downcase.start_with? 'urn:isbn' or refiners.any? {|refiner| refiner.property == 'identifier-type' and refiner.scheme == 'onix:codelist5' and %w[02 15].include? refiner.content } end