lib/edtf/compatibility.rb in edtf-0.0.6 vs lib/edtf/compatibility.rb in edtf-0.0.7
- old
+ new
@@ -1,19 +1,8 @@
-# unless DateTime.respond_to?(:to_time)
-# require 'time'
-#
-# class DateTime
-# def to_time
-# Time.parse(to_s)
-# end
-# end
-# end
-
-
class DateTime
-
- def iso8601
- to_time.iso8601
- end unless method_defined?(:iso8601)
-
+
+ def iso8601
+ to_time.iso8601
+ end unless method_defined?(:iso8601)
+
end