X7ROOT File Manager
Current Path:
/opt/alt/ruby20/lib64/ruby/2.0.0/rss
opt
/
alt
/
ruby20
/
lib64
/
ruby
/
2.0.0
/
rss
/
ðŸ“
..
📄
0.9.rb
(9.36 KB)
📄
1.0.rb
(8.46 KB)
📄
2.0.rb
(2.29 KB)
📄
atom.rb
(22.41 KB)
ðŸ“
content
📄
content.rb
(771 B)
📄
converter.rb
(3.87 KB)
ðŸ“
dublincore
📄
dublincore.rb
(4.18 KB)
📄
image.rb
(4.57 KB)
📄
itunes.rb
(9.96 KB)
ðŸ“
maker
📄
maker.rb
(1.75 KB)
📄
parser.rb
(15.47 KB)
📄
rexmlparser.rb
(1.09 KB)
📄
rss.rb
(33.53 KB)
📄
slash.rb
(1.22 KB)
📄
syndication.rb
(1.75 KB)
📄
taxonomy.rb
(2.98 KB)
📄
trackback.rb
(6.56 KB)
📄
utils.rb
(2.61 KB)
📄
xml-stylesheet.rb
(2.13 KB)
📄
xml.rb
(1.47 KB)
📄
xmlparser.rb
(1.55 KB)
📄
xmlscanner.rb
(2.1 KB)
Editing: maker.rb
require "rss/rss" module RSS ## # # Provides a set of builders for various RSS objects # # * Feeds # * RSS 0.91 # * RSS 1.0 # * RSS 2.0 # * Atom 1.0 # # * Elements # * Atom::Entry module Maker # Collection of supported makers MAKERS = {} class << self # Builder for an RSS object # Creates an object of the type passed in +args+ # # Executes the +block+ to populate elements of the created RSS object def make(version, &block) self[version].make(&block) end # Returns the maker for the +version+ def [](version) maker_info = maker(version) raise UnsupportedMakerVersionError.new(version) if maker_info.nil? maker_info[:maker] end # Adds a maker to the set of supported makers def add_maker(version, normalized_version, maker) MAKERS[version] = {:maker => maker, :version => normalized_version} end # Returns collection of supported maker versions def versions MAKERS.keys.uniq.sort end # Returns collection of supported makers def makers MAKERS.values.collect { |info| info[:maker] }.uniq end # Returns true if the version is supported def supported?(version) versions.include?(version) end private # Can I remove this method? def maker(version) MAKERS[version] end end end end require "rss/maker/1.0" require "rss/maker/2.0" require "rss/maker/feed" require "rss/maker/entry" require "rss/maker/content" require "rss/maker/dublincore" require "rss/maker/slash" require "rss/maker/syndication" require "rss/maker/taxonomy" require "rss/maker/trackback" require "rss/maker/image" require "rss/maker/itunes"
Upload File
Create Folder