Class: Relaton::Jis::Docidentifier
- Inherits:
-
Bib::Docidentifier
- Object
- Bib::Docidentifier
- Relaton::Jis::Docidentifier
- Defined in:
- lib/relaton/jis/docidentifier.rb
Instance Method Summary collapse
Instance Method Details
#remove_date! ⇒ Object
10 11 12 |
# File 'lib/relaton/jis/docidentifier.rb', line 10 def remove_date! content&.sub!(/:\d{4}/, "") end |
#remove_part! ⇒ Object
6 7 8 |
# File 'lib/relaton/jis/docidentifier.rb', line 6 def remove_part! content&.sub!(/-\d+/, "") end |
#to_all_parts! ⇒ Object
14 15 16 17 18 |
# File 'lib/relaton/jis/docidentifier.rb', line 14 def to_all_parts! remove_part! remove_date! self.content = "#{content} (all parts)" if content end |