$43 GRAYBYTE WORDPRESS FILE MANAGER $95

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

/opt/alt/ruby18/lib64/ruby/1.8/yaml/

HOME
Current File : /opt/alt/ruby18/lib64/ruby/1.8/yaml//ypath.rb
#
# YAML::YPath
#

module YAML

    class YPath
        attr_accessor :segments, :predicates, :flags
        def initialize( str )
            @segments = []
            @predicates = []
            @flags = nil
            while str =~ /^\/?(\/|[^\/\[]+)(?:\[([^\]]+)\])?/
                @segments.push $1
                @predicates.push $2
                str = $'
            end
            unless str.to_s.empty?
                @segments += str.split( "/" )
            end
            if @segments.length == 0
                @segments.push "."
            end
        end
        def YPath.each_path( str )
            #
            # Find choices
            #
            paths = []
            str = "(#{ str })"
            while str.sub!( /\(([^()]+)\)/, "\n#{ paths.length }\n" )
                paths.push $1.split( '|' )
            end

            #
            # Construct all possible paths
            #
            all = [ str ]
            ( paths.length - 1 ).downto( 0 ) do |i|
                all = all.collect do |a|
                    paths[i].collect do |p|
                        a.gsub( /\n#{ i }\n/, p )
                    end
                end.flatten.uniq
            end
            all.collect do |path|
                yield YPath.new( path )
            end
        end
    end

end


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.48 PM
root / root
0755
baseemitter.rb
5.618 KB
19 Apr 2008 11.45 AM
root / linksafe
0644
basenode.rb
5.984 KB
18 Apr 2008 10.03 AM
root / linksafe
0644
constants.rb
1.158 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
dbm.rb
2.244 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
encoding.rb
0.591 KB
19 Apr 2008 11.45 AM
root / linksafe
0644
error.rb
1.044 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
loader.rb
0.289 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
rubytypes.rb
12.729 KB
6 Jun 2012 5.34 AM
root / linksafe
0644
store.rb
0.687 KB
19 Apr 2008 11.45 AM
root / linksafe
0644
stream.rb
0.684 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
stringio.rb
1.923 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
syck.rb
0.265 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
tag.rb
3.077 KB
19 Apr 2008 11.45 AM
root / linksafe
0644
types.rb
4.885 KB
19 Apr 2008 11.45 AM
root / linksafe
0644
yamlnode.rb
1.188 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
ypath.rb
1.297 KB
12 Feb 2007 11.01 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF