Debian Codegraph @

vendor/mruby-source/mrbgems/mruby-io/README.md

raw
1 # mruby-io
2
3 `IO` and `File` classes for mruby
4
5 ## Installation
6
7 Add the line below to your build configuration.
8
9 ```
10 conf.gem core: 'mruby-io'
11 ```
12
13 ## Implemented methods
14
15 ### IO
16
17 - <https://doc.ruby-lang.org/ja/1.9.3/class/IO.html>
18
19 | method | mruby-io | memo |
20 |----------------------------|----------|----------|
21 | IO.binread | | |
22 | IO.binwrite | | |
23 | IO.copy_stream | | |
24 | IO.new, IO.for_fd, IO.open | o | |
25 | IO.foreach | | |
26 | IO.pipe | o | |
27 | IO.popen | o | |
28 | IO.read | o | |
29 | IO.readlines | | |
30 | IO.select | o | |
31 | IO.sysopen | o | |
32 | IO.try_convert | | |
33 | IO.write | | |
34 | IO#<< | | |
35 | IO#advise | | |
36 | IO#autoclose= | | |
37 | IO#autoclose? | | |
38 | IO#binmode | | |
39 | IO#binmode? | | |
40 | IO#bytes | | obsolete |
41 | IO#chars | | obsolete |
42 | IO#clone, IO#dup | o | |
43 | IO#close | o | |
44 | IO#close_on_exec= | o | |
45 | IO#close_on_exec? | o | |
46 | IO#close_read | | |
47 | IO#close_write | | |
48 | IO#closed? | o | |
49 | IO#codepoints | | obsolete |
50 | IO#each_byte | o | |
51 | IO#each_char | o | |
52 | IO#each_codepoint | | |
53 | IO#each_line | o | |
54 | IO#eof, IO#eof? | o | |
55 | IO#external_encoding | | |
56 | IO#fcntl | | |
57 | IO#fdatasync | | |
58 | IO#fileno, IO#to_i | o | |
59 | IO#flush | o | |
60 | IO#fsync | | |
61 | IO#getbyte | o | |
62 | IO#getc | o | |
63 | IO#gets | o | |
64 | IO#internal_encoding | | |
65 | IO#ioctl | | |
66 | IO#isatty, IO#tty? | o | |
67 | IO#lineno | | |
68 | IO#lineno= | | |
69 | IO#lines | | obsolete |
70 | IO#pid | o | |
71 | IO#pos, IO#tell | o | |
72 | IO#pos= | o | |
73 | IO#print | o | |
74 | IO#printf | o | |
75 | IO#putc | | |
76 | IO#puts | o | |
77 | IO#read | o | |
78 | IO#read_nonblock | | |
79 | IO#readbyte | o | |
80 | IO#readchar | o | |
81 | IO#readline | o | |
82 | IO#readlines | o | |
83 | IO#readpartial | | |
84 | IO#reopen | | |
85 | IO#rewind | | |
86 | IO#seek | o | |
87 | IO#set_encoding | | |
88 | IO#stat | | |
89 | IO#sync | o | |
90 | IO#sync= | o | |
91 | IO#sysread | o | |
92 | IO#sysseek | o | |
93 | IO#syswrite | o | |
94 | IO#to_io | | |
95 | IO#ungetbyte | o | |
96 | IO#ungetc | o | |
97 | IO#write | o | |
98 | IO#write_nonblock | | |
99
100 ### File
101
102 - <https://doc.ruby-lang.org/ja/1.9.3/class/File.html>
103
104 | method | mruby-io | memo |
105 |-----------------------------|----------|----------|
106 | File.absolute_path | | |
107 | File.atime | | |
108 | File.basename | o | |
109 | File.blockdev? | | FileTest |
110 | File.chardev? | | FileTest |
111 | File.chmod | o | |
112 | File.chown | | |
113 | File.ctime | | |
114 | File.delete, File.unlink | o | |
115 | File.directory? | o | FileTest |
116 | File.dirname | o | |
117 | File.executable? | | FileTest |
118 | File.executable_real? | | FileTest |
119 | File.exist?, exists? | o | FileTest |
120 | File.expand_path | o | |
121 | File.extname | o | |
122 | File.file? | o | FileTest |
123 | File.fnmatch, File.fnmatch? | | |
124 | File.ftype | | |
125 | File.grpowned? | | FileTest |
126 | File.identical? | | FileTest |
127 | File.join | o | |
128 | File.lchmod | | |
129 | File.lchown | | |
130 | File.link | | |
131 | File.lstat | | |
132 | File.mtime | | |
133 | File.new, File.open | o | |
134 | File.owned? | | FileTest |
135 | File.path | | |
136 | File.pipe? | o | FileTest |
137 | File.readable? | | FileTest |
138 | File.readable_real? | | FileTest |
139 | File.readlink | o | |
140 | File.realdirpath | | |
141 | File.realpath | o | |
142 | File.rename | o | |
143 | File.setgid? | | FileTest |
144 | File.setuid? | | FileTest |
145 | File.size | o | |
146 | File.size? | o | FileTest |
147 | File.socket? | o | FileTest |
148 | File.split | | |
149 | File.stat | | |
150 | File.sticky? | | FileTest |
151 | File.symlink | | |
152 | File.symlink? | o | FileTest |
153 | File.truncate | | |
154 | File.umask | o | |
155 | File.utime | | |
156 | File.world_readable? | | |
157 | File.world_writable? | | |
158 | File.writable? | | FileTest |
159 | File.writable_real? | | FileTest |
160 | File.zero? | o | FileTest |
161 | File#atime | o | |
162 | File#chmod | | |
163 | File#chown | | |
164 | File#ctime | o | |
165 | File#flock | o | |
166 | File#lstat | | |
167 | File#mtime | o | |
168 | File#path | o | |
169 | File#size | | |
170 | File#truncate | | |
171
172 ## License
173
174 Copyright (c) 2013 Internet Initiative Japan Inc.
175 Copyright (c) 2017 mruby developers
176
177 Permission is hereby granted, free of charge, to any person obtaining a
178 copy of this software and associated documentation files (the "Software"),
179 to deal in the Software without restriction, including without limitation
180 the rights to use, copy, modify, merge, publish, distribute, sublicense,
181 and/or sell copies of the Software, and to permit persons to whom the
182 Software is furnished to do so, subject to the following conditions:
183
184 The above copyright notice and this permission notice shall be included in
185 all copies or substantial portions of the Software.
186
187 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
188 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
189 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
190 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
191 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
192 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
193 DEALINGS IN THE SOFTWARE.