Sha256: 2358046468417c8385a0674de16b7c5ae8f9ef3d222737b6bd1601c0036c34e1

Contents?: true

Size: 227 Bytes

Versions: 3

Compression:

Stored size: 227 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

3 entries across 3 versions & 1 rubygems

Version Path
genit-1.0.1 lib/genit/utils/news_utils.rb
genit-1.0 lib/genit/utils/news_utils.rb
genit-0.99 lib/genit/utils/news_utils.rb