Remove un-needed to_s method on DateTime
This commit is contained in:
parent
f7fd944446
commit
c8039c1036
1 changed files with 0 additions and 3 deletions
|
@ -1,9 +1,6 @@
|
||||||
module Microformats2
|
module Microformats2
|
||||||
module Property
|
module Property
|
||||||
class DateTime < Foundation
|
class DateTime < Foundation
|
||||||
def to_s
|
|
||||||
@to_s ||= value_class_pattern || element_value || text_value
|
|
||||||
end
|
|
||||||
|
|
||||||
def value
|
def value
|
||||||
::DateTime.parse(to_s)
|
::DateTime.parse(to_s)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue