Skip to content

Instantly share code, notes, and snippets.

@pauldix
Created March 3, 2009 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauldix/73369 to your computer and use it in GitHub Desktop.
Save pauldix/73369 to your computer and use it in GitHub Desktop.
# an idea for the interface to add common parsing elements across all feed
# entry types. Basically have them all inherit from FeedEntry and then
# open up the class.
require ‘feedzirra’
class FeedEntry
element :”wfw:commentRss”, :as => :comment_rss
end
# here's another way:
Feedzirra.add_common_entry_element(:”wfw:commentRss”, :as => :comment_rss)
# thoughts?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment