S
Shajith C T
Hi,
I'm downloading and parsing an RSS/Atom feed using open-uri and
feed-normalizer and trying to save the parsed feed as yaml.
Sample code below:
%w(rubygems open-uri feed-normalizer yaml).each {|lib| require lib}
YAML.dump(FeedNormalizer::FeedNormalizer.parse(open("http://waxy.org/links/index.xml")))
Gives:
TypeError: can't dump anonymous class Class
I read elsewhere on the list about why Class-es cannot be dumped, but
I have no clue why trying to dump a FeedNormalizer::Feed object causes
this error(Don't know where to look).
Has anyone done this sort of thing before? Is there any painless
workaround to this?
Thanks in advance!
Shajith
I'm downloading and parsing an RSS/Atom feed using open-uri and
feed-normalizer and trying to save the parsed feed as yaml.
Sample code below:
%w(rubygems open-uri feed-normalizer yaml).each {|lib| require lib}
YAML.dump(FeedNormalizer::FeedNormalizer.parse(open("http://waxy.org/links/index.xml")))
Gives:
TypeError: can't dump anonymous class Class
I read elsewhere on the list about why Class-es cannot be dumped, but
I have no clue why trying to dump a FeedNormalizer::Feed object causes
this error(Don't know where to look).
Has anyone done this sort of thing before? Is there any painless
workaround to this?
Thanks in advance!
Shajith