Sha256: 45641d3e564213ed498db31eb71f4e321cf0efacbf47dd03c7b6ed7ce4b32b6e
Contents?: true
Size: 366 Bytes
Versions: 16
Compression:
Stored size: 366 Bytes
Contents
module Sufia module CitationsBehaviors module CommonBehavior def persistent_url(work) "#{Sufia.config.persistent_hostpath}#{work.id}" end def clean_end_punctuation(text) if text && ([".", ",", ":", ";", "/"].include? text[-1, 1]) return text[0, text.length - 1] end text end end end end
Version data entries
16 entries across 16 versions & 1 rubygems