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

Inherits:
Pubid::Plateau::Identifier 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

Methods inherited from Pubid::Plateau::Identifier

#base_hash, #formatted_annex, #formatted_number, parse

Methods inherited from Identifier

apply_mappings, #base, #base_document, concrete_class_for, #dated_version_of?, #draft_of?, #drop_supplements, #edition_of?, #eql?, #exclude, from_hash, #has_supplement?, #hash, #includes?, #initialize, #matches?, #mr_all_parts, #mr_edition, #mr_languages, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_subpart, #mr_supplement_suffix, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #related_to?, #render, #resolve_urn_generator, #root, #sibling_of?, #supplement_of?, #to_hash, #to_mr_string, #to_s, #to_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year

Constructor Details

This class inherits a constructor from Pubid::Identifier

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