4 `IO` and `File` classes for mruby
7 Add the line below to your `build_config.rb`:
10 conf.gem core: 'mruby-io'
13 ## Implemented methods
16 - http://doc.ruby-lang.org/ja/1.9.3/class/IO.html
18 | method | mruby-io | memo |
19 | ------------------------- | -------- | ---- |
22 | IO.copy_stream | | |
23 | IO.new, IO.for_fd, IO.open | o | |
31 | IO.try_convert | | |
39 | IO#bytes | | obsolete |
40 | IO#chars | | obsolete |
41 | IO#clone, IO#dup | o | |
43 | IO#close_on_exec= | o | |
44 | IO#close_on_exec? | o | |
46 | IO#close_write | | |
48 | IO#codepoints | | obsolete |
49 | IO#each_byte | o | |
50 | IO#each_char | o | |
51 | IO#each_codepoint | | |
52 | IO#each_line | o | |
53 | IO#eof, IO#eof? | o | |
54 | IO#external_encoding | | |
57 | IO#fileno, IO#to_i | o | |
63 | IO#internal_encoding | | |
65 | IO#isatty, IO#tty? | o | |
68 | IO#lines | | obsolete |
70 | IO#pos, IO#tell | o | |
77 | IO#read_nonblock | | |
81 | IO#readlines | o | |
82 | IO#readpartial | | |
86 | IO#set_encoding | | |
97 | IO#write_nonblock | | |
100 - http://doc.ruby-lang.org/ja/1.9.3/class/File.html
102 | method | mruby-io | memo |
103 | --------------------------- | -------- | ---- |
104 | File.absolute_path | | |
106 | File.basename | o | |
107 | File.blockdev? | | FileTest |
108 | File.chardev? | | FileTest |
112 | File.delete, File.unlink | o | |
113 | File.directory? | o | FileTest |
114 | File.dirname | o | |
115 | File.executable? | | FileTest |
116 | File.executable_real? | | FileTest |
117 | File.exist?, exists? | o | FileTest |
118 | File.expand_path | o | |
119 | File.extname | o | |
120 | File.file? | o | FileTest |
121 | File.fnmatch, File.fnmatch? | | |
123 | File.grpowned? | | FileTest |
124 | File.identical? | | FileTest |
131 | File.new, File.open | o | |
132 | File.owned? | | FileTest |
134 | File.pipe? | o | FileTest |
135 | File.readable? | | FileTest |
136 | File.readable_real? | | FileTest |
137 | File.readlink | o | |
138 | File.realdirpath | | |
139 | File.realpath | o | |
140 | File.rename | o | |
141 | File.setgid? | | FileTest |
142 | File.setuid? | | FileTest |
144 | File.size? | o | FileTest |
145 | File.socket? | o | FileTest |
148 | File.sticky? | | FileTest |
150 | File.symlink? | o | FileTest |
151 | File.truncate | | |
154 | File.world_readable? | | |
155 | File.world_writable? | | |
156 | File.writable? | | FileTest |
157 | File.writable_real? | | FileTest |
158 | File.zero? | o | FileTest |
166 | File#path, File#to_path | o | |
168 | File#truncate | | |
173 Copyright (c) 2013 Internet Initiative Japan Inc.
174 Copyright (c) 2017 mruby developers
176 Permission is hereby granted, free of charge, to any person obtaining a
177 copy of this software and associated documentation files (the "Software"),
178 to deal in the Software without restriction, including without limitation
179 the rights to use, copy, modify, merge, publish, distribute, sublicense,
180 and/or sell copies of the Software, and to permit persons to whom the
181 Software is furnished to do so, subject to the following conditions:
183 The above copyright notice and this permission notice shall be included in
184 all copies or substantial portions of the Software.
186 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
187 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
188 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
189 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
190 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
191 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
192 DEALINGS IN THE SOFTWARE.