Class: Genit::NewsUtils
- Inherits:
-
Object
- Object
- Genit::NewsUtils
- Defined in:
- lib/genit/utils/news_utils.rb
Overview
Utily methods for a news (an article).
Class Method Summary collapse
Class Method Details
.get_date_from_filename(filename) ⇒ Object
8 9 10 |
# File 'lib/genit/utils/news_utils.rb', line 8 def self.get_date_from_filename filename File.basename(filename).gsub(/\..*$/, '') end |