$56 GRAYBYTE WORDPRESS FILE MANAGER $99

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/ruby19/lib64/ruby/1.9.1/syck/

HOME
Current File : /opt/alt/ruby19/lib64/ruby/1.9.1/syck//stringio.rb
warn "#{caller[0]}: yaml/stringio is deprecated" if $VERBOSE

#
# Limited StringIO if no core lib is available
#
begin
require 'stringio'
rescue LoadError
    # StringIO based on code by MoonWolf
    class StringIO
        def initialize(string="")
            @string=string
            @pos=0
            @eof=(string.size==0)
        end
        def pos
            @pos
        end
        def eof
            @eof
        end
        alias eof? eof
        def readline(rs=$/)
            if @eof
                raise EOFError
            else
                if p = @string[@pos..-1]=~rs
                    line = @string[@pos,p+1]
                else
                    line = @string[@pos..-1]
                end
                @pos+=line.size
                @eof =true if @[email protected]
                $_ = line
            end
        end
        def rewind
            seek(0,0)
        end
        def seek(offset,whence)
            case whence
            when 0
                @pos=offset
            when 1
                @pos+=offset
            when 2
                @[email protected]+offset
            end
            @eof=(@pos>[email protected])
            0
        end
    end

	#
	# Class method for creating streams
	#
	def Syck.make_stream( io )
        if String === io
            io = StringIO.new( io )
        elsif not IO === io
            raise Syck::Error, "YAML stream must be an IO or String object."
        end
        if Syck::unicode
            def io.readline
                Syck.utf_to_internal( readline( @ln_sep ), @utf_encoding )
            end
            def io.check_unicode
                @utf_encoding = Syck.sniff_encoding( read( 4 ) )
                @ln_sep = Syck.enc_separator( @utf_encoding )
                seek( -4, IO::SEEK_CUR )
            end
		    def io.utf_encoding
		    	@utf_encoding
		    end
            io.check_unicode
        else
            def io.utf_encoding
                :None
            end
        end
        io
	end

end



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / root
0755
baseemitter.rb
4.847 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
basenode.rb
6.466 KB
19 Jul 2010 4.54 AM
root / linksafe
0644
constants.rb
1.156 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
encoding.rb
0.733 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
error.rb
1.04 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
loader.rb
0.289 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
rubytypes.rb
14.491 KB
6 Mar 2012 2.43 AM
root / linksafe
0644
stream.rb
0.75 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
stringio.rb
1.979 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
syck.rb
0.189 KB
15 May 2011 11.55 AM
root / linksafe
0644
tag.rb
3.164 KB
16 Apr 2010 8.31 PM
root / linksafe
0644
types.rb
4.879 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
yamlnode.rb
1.19 KB
3 Apr 2010 9.50 PM
root / linksafe
0644
ypath.rb
1.354 KB
3 Apr 2010 9.50 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF