Class: Atom::Time
- Inherits:
-
Time
- Object
- Time
- Atom::Time
- Defined in:
- lib/atom/element.rb,
lib/atom/yaml.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(date) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/atom/element.rb', line 6 def self.new date return if date.nil? date = if date.respond_to?(:iso8601) date else Time.parse date.to_s end def date.to_s iso8601 end date end |
Instance Method Details
#taguri ⇒ Object
6 |
# File 'lib/atom/yaml.rb', line 6 def taguri; nil end |