Class: Pubid::Plateau::Identifiers::Handbook

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/plateau/identifiers/handbook.rb

Overview

PLATEAU Handbook Format: PLATEAU Handbook #NN [第X.Y版] Example: PLATEAU Handbook #00 第1.0版

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



20
21
22
23
24
# File 'lib/pubid/plateau/identifiers/handbook.rb', line 20

def ==(other)
  return false unless other.is_a?(Handbook)

  super && edition == other.edition
end

#formatted_editionObject



16
17
18
# File 'lib/pubid/plateau/identifiers/handbook.rb', line 16

def formatted_edition
  "#{edition}"
end

#type_stringObject



12
13
14
# File 'lib/pubid/plateau/identifiers/handbook.rb', line 12

def type_string
  "Handbook"
end