Class RIO::Rio lib/rio.rb    lib/rio/if/basic.rb    lib/rio/if/dir.rb    lib/rio/if/file.rb    lib/rio/if/fileordir.rb    lib/rio/if/grande.rb    lib/rio/if/grande_entry.rb    lib/rio/if/grande_stream.rb    lib/rio/if/internal.rb    lib/rio/if/path.rb    lib/rio/if/rubyio.rb    lib/rio/if/string.rb    lib/rio/if/temp.rb    lib/rio/if/test.rb    lib/rio/kernel.rb   
Parent: Object

Methods

==   ===   =~   dup   eql?   hash   initialize_copy   inspect   length   new   rio   string   to_s   to_str  

Included Modules

Attributes

state  [R] 

Public Class methods

Public Instance methods

Equality - calls to_s on other and compares its return value with the value returned by Rio#to_s

Equality (for case statements) same as Rio#==

Match - invokes other.=~, passing the value returned by Rio#to_str

Returns true if their String representations are eql?

Rios are hashed based on their String representation

Returns the length of the Rio’s String representation

To get the size of the underlying file system object use size

Returns the String associated with a Rio which references a StringIO object. For any other type of Rio, is undefined.

Returns the string representation of a Rio that is used by Ruby’s libraries. For Rios that exist on the file system this is Rio#fspath. For FTP and HTTP Rios, this is the URL.

 rio('/a/b/c').to_s                    ==> "/a/b/c"
 rio('b/c').to_s                       ==> "b/c"
 rio('C:/b/c').to_s                    ==> "C:/b/c"
 rio('//ahost/a/b').to_s               ==> "//ahost/a/b"
 rio('file://ahost/a/b').to_s          ==> "//ahost/a/b"
 rio('file:///a/b').to_s               ==> "/a/b"
 rio('file://localhost/a/b').to_s      ==> "/a/b"
 rio('http://ahost/index.html').to_s   ==> "http://ahost/index.html"
to_str()

Alias for to_s

Copyright © 2005,2006,2007 Christopher Kleckner. All rights reserved.