Back to Mruby

mruby-io

mrbgems/mruby-io/README.md

4.0.09.2 KB
Original Source

mruby-io

IO and File classes for mruby

Installation

Add the line below to your build configuration.

  conf.gem core: 'mruby-io'

Implemented methods

IO

methodmruby-iomemo
IO.binread
IO.binwrite
IO.copy_stream
IO.new, IO.for_fd, IO.openo
IO.foreach
IO.pipeo
IO.popeno
IO.reado
IO.readlines
IO.selecto
IO.sysopeno
IO.try_convert
IO.write
IO#<<
IO#advise
IO#autoclose=
IO#autoclose?
IO#binmode
IO#binmode?
IO#bytesobsolete
IO#charsobsolete
IO#clone, IO#dupo
IO#closeo
IO#close_on_exec=o
IO#close_on_exec?o
IO#close_read
IO#close_write
IO#closed?o
IO#codepointsobsolete
IO#each_byteo
IO#each_charo
IO#each_codepoint
IO#each_lineo
IO#eof, IO#eof?o
IO#external_encoding
IO#fcntl
IO#fdatasync
IO#fileno, IO#to_io
IO#flusho
IO#fsync
IO#getbyteo
IO#getco
IO#getso
IO#internal_encoding
IO#ioctl
IO#isatty, IO#tty?o
IO#lineno
IO#lineno=
IO#linesobsolete
IO#pido
IO#pos, IO#tello
IO#pos=o
IO#printo
IO#printfo
IO#putc
IO#putso
IO#reado
IO#read_nonblock
IO#readbyteo
IO#readcharo
IO#readlineo
IO#readlineso
IO#readpartial
IO#reopen
IO#rewind
IO#seeko
IO#set_encoding
IO#stat
IO#synco
IO#sync=o
IO#sysreado
IO#sysseeko
IO#syswriteo
IO#to_io
IO#ungetbyteo
IO#ungetco
IO#writeo
IO#write_nonblock

File

methodmruby-iomemo
File.absolute_path
File.atime
File.basenameo
File.blockdev?FileTest
File.chardev?FileTest
File.chmodo
File.chown
File.ctime
File.delete, File.unlinko
File.directory?oFileTest
File.dirnameo
File.executable?FileTest
File.executable_real?FileTest
File.exist?, exists?oFileTest
File.expand_patho
File.extnameo
File.file?oFileTest
File.fnmatch, File.fnmatch?
File.ftype
File.grpowned?FileTest
File.identical?FileTest
File.joino
File.lchmod
File.lchown
File.link
File.lstat
File.mtime
File.new, File.openo
File.owned?FileTest
File.path
File.pipe?oFileTest
File.readable?FileTest
File.readable_real?FileTest
File.readlinko
File.realdirpath
File.realpatho
File.renameo
File.setgid?FileTest
File.setuid?FileTest
File.sizeo
File.size?oFileTest
File.socket?oFileTest
File.split
File.stat
File.sticky?FileTest
File.symlink
File.symlink?oFileTest
File.truncate
File.umasko
File.utime
File.world_readable?
File.world_writable?
File.writable?FileTest
File.writable_real?FileTest
File.zero?oFileTest
File#atimeo
File#chmod
File#chown
File#ctimeo
File#flocko
File#lstat
File#mtimeo
File#patho
File#size
File#truncate

Porting Note

If your (non Windows) platform does not support getpwnam(3) for some reason, define MRB_IO_NO_PWNAM. See mruby#5358.

License

Copyright (c) 2013 Internet Initiative Japan Inc. Copyright (c) 2017 mruby developers

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.