Methods

FeedNormalizer::TimeFix

Public Instance Methods

reparse(obj) click to toggle source

Reparse any Time instances, due to RSS::Parser’s redefinition of certain aspects of the Time class that creates unexpected behaviour when extending the Time class, as some common third party libraries do. See code.google.com/p/feed-normalizer/issues/detail?id=13.

     # File lib/structures.rb, line 123
123:     def reparse(obj)
124:       @parsed ||= false
125: 
126:       return obj if @parsed
127: 
128:       if obj.is_a?(Time)
129:         @parsed = true
130:         Time.at(obj) rescue obj
131:       end
132:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.