From 7e138622129c96a634b41f99dc552015cbe4b5a6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 7 Jan 2017 01:12:54 -0500 Subject: Consistently use Time (rather than Date or DateTime). --- lib/page.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/page.rb') diff --git a/lib/page.rb b/lib/page.rb index f269b75..130abdf 100644 --- a/lib/page.rb +++ b/lib/page.rb @@ -16,8 +16,8 @@ class Page # # def page_categories => String | Enumerable # - # def page_published => DateTime | nil - # def page_updated => DateTime | nil + # def page_published => Time | nil + # def page_updated => Time | nil # def page_years => Enumerable def atom_categories # => Enumerable @@ -31,7 +31,7 @@ class Page @categories end - def atom_published # => DateTime | nil + def atom_published # => Time | nil if @published.nil? unless page_published.nil? @published = page_published @@ -50,7 +50,7 @@ class Page @published end - def atom_updated # => DateTime | nil + def atom_updated # => Time | nil if @updated.nil? unless page_updated.nil? @updated = page_updated -- cgit v1.2.3