diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-07 01:12:54 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-07 01:12:54 -0500 |
commit | 7e138622129c96a634b41f99dc552015cbe4b5a6 (patch) | |
tree | 8975468b8f3a91edb24880150297d52805ec93f8 /lib/page.rb | |
parent | 90a45f9729f131569889f52cf792007f23df3949 (diff) |
Consistently use Time (rather than Date or DateTime).
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 |