Class: Relaton::Cen::Docidentifier

Inherits:
Bib::Docidentifier show all
Defined in:
lib/relaton/cen/model/docidentifier.rb

Instance Method Summary collapse

Methods inherited from Bib::Docidentifier

#remove_part!, #to_all_parts!

Methods included from Bib::LocalizedMarkedUpString::ContentSanitization

#content=

Instance Method Details

#remove_date!Object



4
5
6
# File 'lib/relaton/cen/model/docidentifier.rb', line 4

def remove_date!
  self.content.sub!(/:\d{4}$/, "")
end