Sha256: de87c4c19f5930022f706b1f3a60c56da95497985f6bbf64dbf24948c004c97e
Contents?: true
Size: 217 Bytes
Versions: 2
Compression:
Stored size: 217 Bytes
Contents
# -*- encoding: utf-8 -*- module Genit # Utily methods for a news (an article). class NewsUtils def self.get_date_from_filename filename File.basename(filename).gsub(/\..*$/, '') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genit-2.1 | lib/genit/utils/news_utils.rb |
genit-2.0 | lib/genit/utils/news_utils.rb |