Sha256: e850adcdc8c57ca0503874a211b2d5e35d33163ff891e361efac8159b1b42060

Contents?: true

Size: 224 Bytes

Versions: 8

Compression:

Stored size: 224 Bytes

Contents

module Html2rss
  module AttributePostProcessors
    class ParseTime
      def initialize(value, _options, _item)
        @value = value
      end

      def get
        Time.parse(@value).rfc822
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
html2rss-0.3.3 lib/html2rss/attribute_post_processors/parse_time.rb
html2rss-0.3.2 lib/html2rss/attribute_post_processors/parse_time.rb
html2rss-0.3.1 lib/html2rss/attribute_post_processors/parse_time.rb
html2rss-0.3.0 lib/html2rss/attribute_post_processors/parse_time.rb
html2rss-0.2.2 lib/html2rss/attribute_post_processors/parse_time.rb
html2rss-0.2.1 lib/html2rss/attribute_post_processors/parse_time.rb
html2rss-0.2.0 lib/html2rss/attribute_post_processors/parse_time.rb
html2rss-0.1.0 lib/html2rss/attribute_post_processors/parse_time.rb