$31 GRAYBYTE WORDPRESS FILE MANAGER $26

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby23/lib64/ruby/2.3.0/rss/

HOME
Current File : /opt/alt/ruby23/lib64/ruby/2.3.0/rss//xml.rb
# frozen_string_literal: false
require "rss/utils"

module RSS
  module XML
    class Element
      include Enumerable

      attr_reader :name, :prefix, :uri, :attributes, :children
      def initialize(name, prefix=nil, uri=nil, attributes={}, children=[])
        @name = name
        @prefix = prefix
        @uri = uri
        @attributes = attributes
        if children.is_a?(String) or !children.respond_to?(:each)
          @children = [children]
        else
          @children = children
        end
      end

      def [](name)
        @attributes[name]
      end

      def []=(name, value)
        @attributes[name] = value
      end

      def <<(child)
        @children << child
      end

      def each(&block)
        @children.each(&block)
      end

      def ==(other)
        other.kind_of?(self.class) and
          @name == other.name and
          @uri == other.uri and
          @attributes == other.attributes and
          @children == other.children
      end

      def to_s
        rv = "<#{full_name}"
        attributes.each do |key, value|
          rv << " #{Utils.html_escape(key)}=\"#{Utils.html_escape(value)}\""
        end
        if children.empty?
          rv << "/>"
        else
          rv << ">"
          children.each do |child|
            rv << child.to_s
          end
          rv << "</#{full_name}>"
        end
        rv
      end

      def full_name
        if @prefix
          "#{@prefix}:#{@name}"
        else
          @name
        end
      end
    end
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.43 PM
root / root
0755
content
--
3 Mar 2024 10.43 PM
root / linksafe
0755
dublincore
--
3 Mar 2024 10.43 PM
root / linksafe
0755
maker
--
3 Mar 2024 10.43 PM
root / linksafe
0755
0.9.rb
10.61 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
1.0.rb
9.636 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
2.0.rb
3.428 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
atom.rb
22.443 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
content.rb
0.869 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
converter.rb
3.897 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
dublincore.rb
4.304 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
image.rb
4.793 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
itunes.rb
10.069 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
maker.rb
1.781 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
parser.rb
15.612 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
rexmlparser.rb
0.972 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
rss.rb
35.173 KB
30 Jun 2017 12.48 PM
root / linksafe
0644
slash.rb
1.328 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
syndication.rb
1.883 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
taxonomy.rb
3.194 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
trackback.rb
6.716 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
utils.rb
5.106 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
xml-stylesheet.rb
2.158 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
xml.rb
1.498 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
xmlparser.rb
1.65 KB
16 Dec 2015 5.07 AM
root / linksafe
0644
xmlscanner.rb
2.134 KB
16 Dec 2015 5.07 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF