diff options
Diffstat (limited to 'lib/page.rb')
-rw-r--r-- | lib/page.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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<String> # - # def page_published => DateTime | nil - # def page_updated => DateTime | nil + # def page_published => Time | nil + # def page_updated => Time | nil # def page_years => Enumerable<Fixnum> def atom_categories # => Enumerable<Category> @@ -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 |