Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby27/share/ruby/rss
File: slash.rb
# frozen_string_literal: false
[0] Fix | Delete
require 'rss/1.0'
[1] Fix | Delete
[2] Fix | Delete
module RSS
[3] Fix | Delete
# The prefix for the Slash XML namespace.
[4] Fix | Delete
SLASH_PREFIX = 'slash'
[5] Fix | Delete
# The URI of the Slash specification.
[6] Fix | Delete
SLASH_URI = "http://purl.org/rss/1.0/modules/slash/"
[7] Fix | Delete
[8] Fix | Delete
RDF.install_ns(SLASH_PREFIX, SLASH_URI)
[9] Fix | Delete
[10] Fix | Delete
module SlashModel
[11] Fix | Delete
extend BaseModel
[12] Fix | Delete
[13] Fix | Delete
ELEMENT_INFOS = \
[14] Fix | Delete
[
[15] Fix | Delete
["section"],
[16] Fix | Delete
["department"],
[17] Fix | Delete
["comments", :positive_integer],
[18] Fix | Delete
["hit_parade", :csv_integer],
[19] Fix | Delete
]
[20] Fix | Delete
[21] Fix | Delete
class << self
[22] Fix | Delete
def append_features(klass)
[23] Fix | Delete
super
[24] Fix | Delete
[25] Fix | Delete
return if klass.instance_of?(Module)
[26] Fix | Delete
klass.install_must_call_validator(SLASH_PREFIX, SLASH_URI)
[27] Fix | Delete
ELEMENT_INFOS.each do |name, type, *additional_infos|
[28] Fix | Delete
full_name = "#{SLASH_PREFIX}_#{name}"
[29] Fix | Delete
klass.install_text_element(full_name, SLASH_URI, "?",
[30] Fix | Delete
full_name, type, name)
[31] Fix | Delete
end
[32] Fix | Delete
[33] Fix | Delete
klass.module_eval do
[34] Fix | Delete
alias_method(:slash_hit_parades, :slash_hit_parade)
[35] Fix | Delete
undef_method(:slash_hit_parade)
[36] Fix | Delete
alias_method(:slash_hit_parade, :slash_hit_parade_content)
[37] Fix | Delete
end
[38] Fix | Delete
end
[39] Fix | Delete
end
[40] Fix | Delete
end
[41] Fix | Delete
[42] Fix | Delete
class RDF
[43] Fix | Delete
class Item; include SlashModel; end
[44] Fix | Delete
end
[45] Fix | Delete
[46] Fix | Delete
SlashModel::ELEMENT_INFOS.each do |name, type|
[47] Fix | Delete
accessor_base = "#{SLASH_PREFIX}_#{name}"
[48] Fix | Delete
BaseListener.install_get_text_element(SLASH_URI, name, accessor_base)
[49] Fix | Delete
end
[50] Fix | Delete
end
[51] Fix | Delete
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function