Module: FeedNormalizer::TimeFix

### Home Classes Methods

### In Files

- lib/structures.rb

### Methods

- #reparse

### Files

- History.txt
- License.txt
- Manifest.txt
- README.txt

### Class/Module Index

Quicksearch

- FeedNormalizer
- FeedNormalizer::ElementCleaner
- FeedNormalizer::ElementEquality
- FeedNormalizer::Entry
- FeedNormalizer::Feed
- FeedNormalizer::FeedNormalizer
- FeedNormalizer::HtmlCleaner
- FeedNormalizer::Parser
- FeedNormalizer::ParserRegistry
- FeedNormalizer::RewriteRelativeLinks
- FeedNormalizer::RubyRssParser
- FeedNormalizer::SimpleRssParser
- FeedNormalizer::Singular
- FeedNormalizer::TimeFix
- RSS
- RSS::Rss
- RSS::Rss::Channel
- RSS::Rss::Channel::Item
- RSS::Rss::Channel::Item::Enclosure
- SimpleRSS

No matching classes.

# 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
    def reparse(obj)
      @parsed ||= false

      return obj if @parsed

      if obj.is_a?(Time)
        @parsed = true
        Time.at(obj) rescue obj
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.