File class of PicoRuby
Singleton methods
basename
File.basename(String filename) -> String
chmod
File.chmod(Integer mode, *string) -> Integer
directory?
File.directory?(string) -> bool
dirname
File.dirname(String filename) -> String
exist?
File.exist?(string) -> bool
expand_path
File.expand_path(string, ?string) -> String
file?
File.file?(string) -> bool
join
File.join(*String parts) -> String
new
File.new(string fd_or_path, ?string mode, ?int perm) -> File
File.new[T] (string fd_or_path, ?string mode, ?int perm) { (untyped) -> T } -> untyped
open
File.open(string, ?string) -> File
File.open[T] (string, ?string) { (untyped) -> T } -> untyped
rename
File.rename(string, string) -> 0
unlink
File.unlink(*string) -> Integer
utime
File.utime(Time atime, Time mtime, *string) -> Integer
Instance methods
close
instance.close() -> nil
each_line
instance.each_line() { (String) -> void } -> nil
eof?
instance.eof?() -> bool
expand
instance.expand(Integer size) -> Integer
fsync
instance.fsync() -> Integer
gets
instance.gets(*(Integer|String) args, ?chomp: bool) -> String?
path
instance.path() -> String
printf
instance.printf(String format, *String string) -> nil
putc
instance.putc(String | Integer ch) -> (String | Integer)
puts
instance.puts(*String string) -> nil
read
instance.read(?Integer length, ?String outbuf) -> String?
rewind
instance.rewind() -> Integer
seek
instance.seek(Integer offset, ?Integer whence) -> Integer
size
instance.size() -> Integer
tell
instance.tell() -> Integer
write
instance.write(*String string) -> Integer
Instance methods
physical_address
instance.physical_address() -> Integer
sector_size
instance.sector_size() -> Integer