lib/genit/utils/news_utils.rb in genit-1.0.1 vs lib/genit/utils/news_utils.rb in genit-2.0
- old
+ new
@@ -2,13 +2,13 @@
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