Skip to content

Instantly share code, notes, and snippets.

/example.rb Secret

Created October 30, 2015 21:26
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 anonymous/2e9d20e18aa9cfe814f7 to your computer and use it in GitHub Desktop.
Save anonymous/2e9d20e18aa9cfe814f7 to your computer and use it in GitHub Desktop.
require "rss"
x = RSS::Rss::Channel::Item.new
=> #<RSS::Rss::Channel::Item:0x007fd29498dac8
@author=nil,
@category=[],
@comments=nil,
@content_encoded=nil,
@converter=nil,
@dc_contributor=[],
@dc_coverage=[],
@dc_creator=[],
@dc_date=[],
@dc_description=[],
@dc_format=[],
@dc_identifier=[],
@dc_language=[],
@dc_publisher=[],
@dc_relation=[],
@dc_rights=[],
@dc_source=[],
[10] pry(main)> x.class
=> RSS::Rss::Channel::Item
[11] pry(main)> class RSS::Rss::Channel::Item
[11] pry(main)* def pubDate
[11] pry(main)* :default_pub_date
[11] pry(main)* end
[11] pry(main)* end
=> nil
[12] pry(main)> x.pubDate
=> :default_pub_date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment