See also: RIO::Doc::SYNOPSIS; RIO::Doc::INTRO; RIO::Doc::HOWTO.
| state | [R] |
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"
Copyright © 2005,2006,2007 Christopher Kleckner. All rights reserved.