module OpenStax::Utilities::Text
Public Class Methods
copyright(start_year, holder)
click to toggle source
# File lib/openstax/utilities/text.rb, line 5 def self.copyright(start_year, holder) year_range = "#{start_year}-#{Time.now.year}".sub(/\A(\d+)-\1\z/, '\1'); "Copyright © #{year_range} #{holder}".html_safe end