Class: Pubid::Bsi::Identifiers::Corrigendum
- Inherits:
-
SingleIdentifier
- Object
- Pubid::Bsi::Identifiers::Corrigendum
- Defined in:
- lib/pubid/bsi/identifiers/corrigendum.rb
Overview
Corrigendum Identifier Contains a base identifier plus corrigendum parameters
Instance Method Summary collapse
-
#base_document ⇒ Object
Base document = the standard this corrigendum applies to, fully peeled.
-
#drop_supplements ⇒ Object
Dropping the supplement layer yields the base standard.
- #publisher ⇒ Object
- #supplement_number ⇒ Object
-
#supplement_type ⇒ Object
Uniform supplement interface (shared with Amendment) so callers need not special-case the class.
- #supplement_year ⇒ Object
Instance Method Details
#base_document ⇒ Object
Base document = the standard this corrigendum applies to, fully peeled.
19 20 21 |
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 19 def base_document base_identifier&.base_document || self end |
#drop_supplements ⇒ Object
Dropping the supplement layer yields the base standard.
24 25 26 |
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 24 def drop_supplements base_identifier || self end |
#publisher ⇒ Object
14 15 16 |
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 14 def publisher base_identifier&.publisher end |
#supplement_number ⇒ Object
34 35 36 |
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 34 def supplement_number corrigendum_number end |
#supplement_type ⇒ Object
Uniform supplement interface (shared with Amendment) so callers need not special-case the class.
30 31 32 |
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 30 def supplement_type :corrigendum end |
#supplement_year ⇒ Object
38 39 40 |
# File 'lib/pubid/bsi/identifiers/corrigendum.rb', line 38 def supplement_year corrigendum_year end |