mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Format Markdown tables
This commit is contained in:
+104
-104
@@ -22,107 +22,107 @@ sign) of operands.
|
||||
|
||||
## table.1 Instruction Table
|
||||
|
||||
| Instruction Name | Operand type | Semantics |
|
||||
|------------------|--------------|----------------------------------------------------------|
|
||||
| `OP_NOP` | `-` | `no operation` |
|
||||
| `OP_MOVE` | `BB` | `R(a) = R(b)` |
|
||||
| `OP_LOADL` | `BB` | `R(a) = Pool(b)` |
|
||||
| `OP_LOADI` | `BB` | `R(a) = mrb_int(b)` |
|
||||
| `OP_LOADINEG` | `BB` | `R(a) = mrb_int(-b)` |
|
||||
| `OP_LOADI__1` | `B` | `R(a) = mrb_int(-1)` |
|
||||
| `OP_LOADI_0` | `B` | `R(a) = mrb_int(0)` |
|
||||
| `OP_LOADI_1` | `B` | `R(a) = mrb_int(1)` |
|
||||
| `OP_LOADI_2` | `B` | `R(a) = mrb_int(2)` |
|
||||
| `OP_LOADI_3` | `B` | `R(a) = mrb_int(3)` |
|
||||
| `OP_LOADI_4` | `B` | `R(a) = mrb_int(4)` |
|
||||
| `OP_LOADI_5` | `B` | `R(a) = mrb_int(5)` |
|
||||
| `OP_LOADI_6` | `B` | `R(a) = mrb_int(6)` |
|
||||
| `OP_LOADI_7` | `B` | `R(a) = mrb_int(7)` |
|
||||
| `OP_LOADI16` | `BS` | `R(a) = mrb_int(b)` |
|
||||
| `OP_LOADI32` | `BSS` | `R(a) = mrb_int((b<<16)+c)` |
|
||||
| `OP_LOADSYM` | `BB` | `R(a) = Syms(b)` |
|
||||
| `OP_LOADNIL` | `B` | `R(a) = nil` |
|
||||
| `OP_LOADSELF` | `B` | `R(a) = self` |
|
||||
| `OP_LOADT` | `B` | `R(a) = true` |
|
||||
| `OP_LOADF` | `B` | `R(a) = false` |
|
||||
| `OP_GETGV` | `BB` | `R(a) = getglobal(Syms(b))` |
|
||||
| `OP_SETGV` | `BB` | `setglobal(Syms(b), R(a))` |
|
||||
| `OP_GETSV` | `BB` | `R(a) = Special[Syms(b)]` |
|
||||
| `OP_SETSV` | `BB` | `Special[Syms(b)] = R(a)` |
|
||||
| `OP_GETIV` | `BB` | `R(a) = ivget(Syms(b))` |
|
||||
| `OP_SETIV` | `BB` | `ivset(Syms(b),R(a))` |
|
||||
| `OP_GETCV` | `BB` | `R(a) = cvget(Syms(b))` |
|
||||
| `OP_SETCV` | `BB` | `cvset(Syms(b),R(a))` |
|
||||
| `OP_GETCONST` | `BB` | `R(a) = constget(Syms(b))` |
|
||||
| `OP_SETCONST` | `BB` | `constset(Syms(b),R(a))` |
|
||||
| `OP_GETMCNST` | `BB` | `R(a) = R(a)::Syms(b)` |
|
||||
| `OP_SETMCNST` | `BB` | `R(a+1)::Syms(b) = R(a)` |
|
||||
| `OP_GETUPVAR` | `BBB` | `R(a) = uvget(b,c)` |
|
||||
| `OP_SETUPVAR` | `BBB` | `uvset(b,c,R(a))` |
|
||||
| `OP_JMP` | `S` | `pc+=a` |
|
||||
| `OP_JMPIF` | `BS` | `if R(a) pc+=b` |
|
||||
| `OP_JMPNOT` | `BS` | `if !R(a) pc+=b` |
|
||||
| `OP_JMPNIL` | `BS` | `if R(a)==nil pc+=b` |
|
||||
| `OP_JMPUW` | `S` | `unwind_and_jump_to(a)` |
|
||||
| `OP_EXCEPT` | `B` | `R(a) = exc` |
|
||||
| `OP_RESCUE` | `BB` | `R(b) = R(a).isa?(R(b))` |
|
||||
| `OP_RAISEIF` | `B` | `raise(R(a)) if R(a)` |
|
||||
| `OP_SEND` | `BBB` | `R(a) = call(R(a),Syms(b),R(a+1),...,R(a+c))` |
|
||||
| `OP_SENDB` | `BBB` | `R(a) = call(R(a),Syms(b),R(a+1),...,R(a+c),&R(a+c+1))` |
|
||||
| `OP_CALL` | `-` | `R(0) = self.call(frame.argc, frame.argv)` |
|
||||
| `OP_SUPER` | `BB` | `R(a) = super(R(a+1),... ,R(a+b+1))` |
|
||||
| `OP_ARGARY` | `BS` | `R(a) = argument array (16=m5:r1:m5:d1:lv4)` |
|
||||
| `OP_ENTER` | `W` | `arg setup according to flags (23=m5:o5:r1:m5:k5:d1:b1)` |
|
||||
| `OP_KEY_P` | `BB` | `R(a) = kdict.key?(Syms(b))` |
|
||||
| `OP_KEYEND` | `-` | `raise unless kdict.empty?` |
|
||||
| `OP_KARG` | `BB` | `R(a) = kdict[Syms(b)]; kdict.delete(Syms(b))` |
|
||||
| `OP_RETURN` | `B` | `return R(a) (normal)` |
|
||||
| `OP_RETURN_BLK` | `B` | `return R(a) (in-block return)` |
|
||||
| `OP_BREAK` | `B` | `break R(a)` |
|
||||
| `OP_BLKPUSH` | `BS` | `R(a) = block (16=m5:r1:m5:d1:lv4)` |
|
||||
| `OP_ADD` | `B` | `R(a) = R(a)+R(a+1)` |
|
||||
| `OP_ADDI` | `BB` | `R(a) = R(a)+mrb_int(b)` |
|
||||
| `OP_SUB` | `B` | `R(a) = R(a)-R(a+1)` |
|
||||
| `OP_SUBI` | `BB` | `R(a) = R(a)-mrb_int(b)` |
|
||||
| `OP_MUL` | `B` | `R(a) = R(a)*R(a+1)` |
|
||||
| `OP_DIV` | `B` | `R(a) = R(a)/R(a+1)` |
|
||||
| `OP_EQ` | `B` | `R(a) = R(a)==R(a+1)` |
|
||||
| `OP_LT` | `B` | `R(a) = R(a)<R(a+1)` |
|
||||
| `OP_LE` | `B` | `R(a) = R(a)<=R(a+1)` |
|
||||
| `OP_GT` | `B` | `R(a) = R(a)>R(a+1)` |
|
||||
| `OP_GE` | `B` | `R(a) = R(a)>=R(a+1)` |
|
||||
| `OP_ARRAY` | `BB` | `R(a) = ary_new(R(a),R(a+1)..R(a+b))` |
|
||||
| `OP_ARRAY2` | `BBB` | `R(a) = ary_new(R(b),R(b+1)..R(b+c))` |
|
||||
| `OP_ARYCAT` | `B` | `ary_cat(R(a),R(a+1))` |
|
||||
| `OP_ARYPUSH` | `BB` | `ary_push(R(a),R(a+1)..R(a+b))` |
|
||||
| `OP_ARYDUP` | `B` | `R(a) = ary_dup(R(a))` |
|
||||
| `OP_AREF` | `BBB` | `R(a) = R(b)[c]` |
|
||||
| `OP_ASET` | `BBB` | `R(b)[c] = R(a)` |
|
||||
| `OP_APOST` | `BBB` | `*R(a),R(a+1)..R(a+c) = R(a)[b..]` |
|
||||
| `OP_INTERN` | `B` | `R(a) = intern(R(a))` |
|
||||
| `OP_STRING` | `BB` | `R(a) = str_dup(Pool(b))` |
|
||||
| `OP_STRCAT` | `B` | `str_cat(R(a),R(a+1))` |
|
||||
| `OP_HASH` | `BB` | `R(a) = hash_new(R(a),R(a+1)..R(a+b*2-1))` |
|
||||
| `OP_HASHADD` | `BB` | `hash_push(R(a),R(a+1)..R(a+b*2))` |
|
||||
| `OP_HASHCAT` | `B` | `R(a) = hash_cat(R(a),R(a+1))` |
|
||||
| `OP_LAMBDA` | `BB` | `R(a) = lambda(Irep(b),OP_L_LAMBDA)` |
|
||||
| `OP_BLOCK` | `BB` | `R(a) = lambda(Irep(b),OP_L_BLOCK)` |
|
||||
| `OP_METHOD` | `BB` | `R(a) = lambda(Irep(b),OP_L_METHOD)` |
|
||||
| `OP_RANGE_INC` | `B` | `R(a) = range_new(R(a),R(a+1),FALSE)` |
|
||||
| `OP_RANGE_EXC` | `B` | `R(a) = range_new(R(a),R(a+1),TRUE)` |
|
||||
| `OP_OCLASS` | `B` | `R(a) = ::Object` |
|
||||
| `OP_CLASS` | `BB` | `R(a) = newclass(R(a),Syms(b),R(a+1))` |
|
||||
| `OP_MODULE` | `BB` | `R(a) = newmodule(R(a),Syms(b))` |
|
||||
| `OP_EXEC` | `BB` | `R(a) = blockexec(R(a),Irep[b])` |
|
||||
| `OP_DEF` | `BB` | `R(a).newmethod(Syms(b),R(a+1)); R(a) = Syms(b)` |
|
||||
| `OP_ALIAS` | `BB` | `alias_method(target_class,Syms(a),Syms(b))` |
|
||||
| `OP_UNDEF` | `B` | `undef_method(target_class,Syms(a))` |
|
||||
| `OP_SCLASS` | `B` | `R(a) = R(a).singleton_class` |
|
||||
| `OP_TCLASS` | `B` | `R(a) = target_class` |
|
||||
| `OP_DEBUG` | `BBB` | `print a,b,c` |
|
||||
| `OP_ERR` | `B` | `raise(LocalJumpError, Pool(a))` |
|
||||
| `OP_EXT1` | `-` | `make 1st operand 16bit` |
|
||||
| `OP_EXT2` | `-` | `make 2nd operand 16bit` |
|
||||
| `OP_EXT3` | `-` | `make 1st and 2nd operands 16bit` |
|
||||
| `OP_STOP` | `-` | `stop VM` |
|
||||
|------------------|--------------|----------------------------------------------------------|
|
||||
| Instruction Name | Operand type | Semantics |
|
||||
|--------------------|----------------|------------------------------------------------------------|
|
||||
| `OP_NOP` | `-` | `no operation` |
|
||||
| `OP_MOVE` | `BB` | `R(a) = R(b)` |
|
||||
| `OP_LOADL` | `BB` | `R(a) = Pool(b)` |
|
||||
| `OP_LOADI` | `BB` | `R(a) = mrb_int(b)` |
|
||||
| `OP_LOADINEG` | `BB` | `R(a) = mrb_int(-b)` |
|
||||
| `OP_LOADI__1` | `B` | `R(a) = mrb_int(-1)` |
|
||||
| `OP_LOADI_0` | `B` | `R(a) = mrb_int(0)` |
|
||||
| `OP_LOADI_1` | `B` | `R(a) = mrb_int(1)` |
|
||||
| `OP_LOADI_2` | `B` | `R(a) = mrb_int(2)` |
|
||||
| `OP_LOADI_3` | `B` | `R(a) = mrb_int(3)` |
|
||||
| `OP_LOADI_4` | `B` | `R(a) = mrb_int(4)` |
|
||||
| `OP_LOADI_5` | `B` | `R(a) = mrb_int(5)` |
|
||||
| `OP_LOADI_6` | `B` | `R(a) = mrb_int(6)` |
|
||||
| `OP_LOADI_7` | `B` | `R(a) = mrb_int(7)` |
|
||||
| `OP_LOADI16` | `BS` | `R(a) = mrb_int(b)` |
|
||||
| `OP_LOADI32` | `BSS` | `R(a) = mrb_int((b<<16)+c)` |
|
||||
| `OP_LOADSYM` | `BB` | `R(a) = Syms(b)` |
|
||||
| `OP_LOADNIL` | `B` | `R(a) = nil` |
|
||||
| `OP_LOADSELF` | `B` | `R(a) = self` |
|
||||
| `OP_LOADT` | `B` | `R(a) = true` |
|
||||
| `OP_LOADF` | `B` | `R(a) = false` |
|
||||
| `OP_GETGV` | `BB` | `R(a) = getglobal(Syms(b))` |
|
||||
| `OP_SETGV` | `BB` | `setglobal(Syms(b), R(a))` |
|
||||
| `OP_GETSV` | `BB` | `R(a) = Special[Syms(b)]` |
|
||||
| `OP_SETSV` | `BB` | `Special[Syms(b)] = R(a)` |
|
||||
| `OP_GETIV` | `BB` | `R(a) = ivget(Syms(b))` |
|
||||
| `OP_SETIV` | `BB` | `ivset(Syms(b),R(a))` |
|
||||
| `OP_GETCV` | `BB` | `R(a) = cvget(Syms(b))` |
|
||||
| `OP_SETCV` | `BB` | `cvset(Syms(b),R(a))` |
|
||||
| `OP_GETCONST` | `BB` | `R(a) = constget(Syms(b))` |
|
||||
| `OP_SETCONST` | `BB` | `constset(Syms(b),R(a))` |
|
||||
| `OP_GETMCNST` | `BB` | `R(a) = R(a)::Syms(b)` |
|
||||
| `OP_SETMCNST` | `BB` | `R(a+1)::Syms(b) = R(a)` |
|
||||
| `OP_GETUPVAR` | `BBB` | `R(a) = uvget(b,c)` |
|
||||
| `OP_SETUPVAR` | `BBB` | `uvset(b,c,R(a))` |
|
||||
| `OP_JMP` | `S` | `pc+=a` |
|
||||
| `OP_JMPIF` | `BS` | `if R(a) pc+=b` |
|
||||
| `OP_JMPNOT` | `BS` | `if !R(a) pc+=b` |
|
||||
| `OP_JMPNIL` | `BS` | `if R(a)==nil pc+=b` |
|
||||
| `OP_JMPUW` | `S` | `unwind_and_jump_to(a)` |
|
||||
| `OP_EXCEPT` | `B` | `R(a) = exc` |
|
||||
| `OP_RESCUE` | `BB` | `R(b) = R(a).isa?(R(b))` |
|
||||
| `OP_RAISEIF` | `B` | `raise(R(a)) if R(a)` |
|
||||
| `OP_SEND` | `BBB` | `R(a) = call(R(a),Syms(b),R(a+1),...,R(a+c))` |
|
||||
| `OP_SENDB` | `BBB` | `R(a) = call(R(a),Syms(b),R(a+1),...,R(a+c),&R(a+c+1))` |
|
||||
| `OP_CALL` | `-` | `R(0) = self.call(frame.argc, frame.argv)` |
|
||||
| `OP_SUPER` | `BB` | `R(a) = super(R(a+1),... ,R(a+b+1))` |
|
||||
| `OP_ARGARY` | `BS` | `R(a) = argument array (16=m5:r1:m5:d1:lv4)` |
|
||||
| `OP_ENTER` | `W` | `arg setup according to flags (23=m5:o5:r1:m5:k5:d1:b1)` |
|
||||
| `OP_KEY_P` | `BB` | `R(a) = kdict.key?(Syms(b))` |
|
||||
| `OP_KEYEND` | `-` | `raise unless kdict.empty?` |
|
||||
| `OP_KARG` | `BB` | `R(a) = kdict[Syms(b)]; kdict.delete(Syms(b))` |
|
||||
| `OP_RETURN` | `B` | `return R(a) (normal)` |
|
||||
| `OP_RETURN_BLK` | `B` | `return R(a) (in-block return)` |
|
||||
| `OP_BREAK` | `B` | `break R(a)` |
|
||||
| `OP_BLKPUSH` | `BS` | `R(a) = block (16=m5:r1:m5:d1:lv4)` |
|
||||
| `OP_ADD` | `B` | `R(a) = R(a)+R(a+1)` |
|
||||
| `OP_ADDI` | `BB` | `R(a) = R(a)+mrb_int(b)` |
|
||||
| `OP_SUB` | `B` | `R(a) = R(a)-R(a+1)` |
|
||||
| `OP_SUBI` | `BB` | `R(a) = R(a)-mrb_int(b)` |
|
||||
| `OP_MUL` | `B` | `R(a) = R(a)*R(a+1)` |
|
||||
| `OP_DIV` | `B` | `R(a) = R(a)/R(a+1)` |
|
||||
| `OP_EQ` | `B` | `R(a) = R(a)==R(a+1)` |
|
||||
| `OP_LT` | `B` | `R(a) = R(a)<R(a+1)` |
|
||||
| `OP_LE` | `B` | `R(a) = R(a)<=R(a+1)` |
|
||||
| `OP_GT` | `B` | `R(a) = R(a)>R(a+1)` |
|
||||
| `OP_GE` | `B` | `R(a) = R(a)>=R(a+1)` |
|
||||
| `OP_ARRAY` | `BB` | `R(a) = ary_new(R(a),R(a+1)..R(a+b))` |
|
||||
| `OP_ARRAY2` | `BBB` | `R(a) = ary_new(R(b),R(b+1)..R(b+c))` |
|
||||
| `OP_ARYCAT` | `B` | `ary_cat(R(a),R(a+1))` |
|
||||
| `OP_ARYPUSH` | `BB` | `ary_push(R(a),R(a+1)..R(a+b))` |
|
||||
| `OP_ARYDUP` | `B` | `R(a) = ary_dup(R(a))` |
|
||||
| `OP_AREF` | `BBB` | `R(a) = R(b)[c]` |
|
||||
| `OP_ASET` | `BBB` | `R(b)[c] = R(a)` |
|
||||
| `OP_APOST` | `BBB` | `*R(a),R(a+1)..R(a+c) = R(a)[b..]` |
|
||||
| `OP_INTERN` | `B` | `R(a) = intern(R(a))` |
|
||||
| `OP_STRING` | `BB` | `R(a) = str_dup(Pool(b))` |
|
||||
| `OP_STRCAT` | `B` | `str_cat(R(a),R(a+1))` |
|
||||
| `OP_HASH` | `BB` | `R(a) = hash_new(R(a),R(a+1)..R(a+b*2-1))` |
|
||||
| `OP_HASHADD` | `BB` | `hash_push(R(a),R(a+1)..R(a+b*2))` |
|
||||
| `OP_HASHCAT` | `B` | `R(a) = hash_cat(R(a),R(a+1))` |
|
||||
| `OP_LAMBDA` | `BB` | `R(a) = lambda(Irep(b),OP_L_LAMBDA)` |
|
||||
| `OP_BLOCK` | `BB` | `R(a) = lambda(Irep(b),OP_L_BLOCK)` |
|
||||
| `OP_METHOD` | `BB` | `R(a) = lambda(Irep(b),OP_L_METHOD)` |
|
||||
| `OP_RANGE_INC` | `B` | `R(a) = range_new(R(a),R(a+1),FALSE)` |
|
||||
| `OP_RANGE_EXC` | `B` | `R(a) = range_new(R(a),R(a+1),TRUE)` |
|
||||
| `OP_OCLASS` | `B` | `R(a) = ::Object` |
|
||||
| `OP_CLASS` | `BB` | `R(a) = newclass(R(a),Syms(b),R(a+1))` |
|
||||
| `OP_MODULE` | `BB` | `R(a) = newmodule(R(a),Syms(b))` |
|
||||
| `OP_EXEC` | `BB` | `R(a) = blockexec(R(a),Irep[b])` |
|
||||
| `OP_DEF` | `BB` | `R(a).newmethod(Syms(b),R(a+1)); R(a) = Syms(b)` |
|
||||
| `OP_ALIAS` | `BB` | `alias_method(target_class,Syms(a),Syms(b))` |
|
||||
| `OP_UNDEF` | `B` | `undef_method(target_class,Syms(a))` |
|
||||
| `OP_SCLASS` | `B` | `R(a) = R(a).singleton_class` |
|
||||
| `OP_TCLASS` | `B` | `R(a) = target_class` |
|
||||
| `OP_DEBUG` | `BBB` | `print a,b,c` |
|
||||
| `OP_ERR` | `B` | `raise(LocalJumpError, Pool(a))` |
|
||||
| `OP_EXT1` | `-` | `make 1st operand 16bit` |
|
||||
| `OP_EXT2` | `-` | `make 2nd operand 16bit` |
|
||||
| `OP_EXT3` | `-` | `make 1st and 2nd operands 16bit` |
|
||||
| `OP_STOP` | `-` | `stop VM` |
|
||||
| ------------------ | -------------- | ---------------------------------------------------------- |
|
||||
|
||||
+129
-129
@@ -16,158 +16,158 @@ Add the line below to your build configuration.
|
||||
|
||||
* <https://doc.ruby-lang.org/ja/1.9.3/class/IO.html>
|
||||
|
||||
| method | mruby-io | memo |
|
||||
| ------------------------- | -------- | ---- |
|
||||
| IO.binread | | |
|
||||
| IO.binwrite | | |
|
||||
| IO.copy_stream | | |
|
||||
| IO.new, IO.for_fd, IO.open | o | |
|
||||
| IO.foreach | | |
|
||||
| IO.pipe | o | |
|
||||
| IO.popen | o | |
|
||||
| IO.read | o | |
|
||||
| IO.readlines | | |
|
||||
| IO.select | o | |
|
||||
| IO.sysopen | o | |
|
||||
| IO.try_convert | | |
|
||||
| IO.write | | |
|
||||
| IO#<< | | |
|
||||
| IO#advise | | |
|
||||
| IO#autoclose= | | |
|
||||
| IO#autoclose? | | |
|
||||
| IO#binmode | | |
|
||||
| IO#binmode? | | |
|
||||
| method | mruby-io | memo |
|
||||
|----------------------------|----------|----------|
|
||||
| IO.binread | | |
|
||||
| IO.binwrite | | |
|
||||
| IO.copy_stream | | |
|
||||
| IO.new, IO.for_fd, IO.open | o | |
|
||||
| IO.foreach | | |
|
||||
| IO.pipe | o | |
|
||||
| IO.popen | o | |
|
||||
| IO.read | o | |
|
||||
| IO.readlines | | |
|
||||
| IO.select | o | |
|
||||
| IO.sysopen | o | |
|
||||
| IO.try_convert | | |
|
||||
| IO.write | | |
|
||||
| IO#<< | | |
|
||||
| IO#advise | | |
|
||||
| IO#autoclose= | | |
|
||||
| IO#autoclose? | | |
|
||||
| IO#binmode | | |
|
||||
| IO#binmode? | | |
|
||||
| IO#bytes | | obsolete |
|
||||
| IO#chars | | obsolete |
|
||||
| IO#clone, IO#dup | o | |
|
||||
| IO#close | o | |
|
||||
| IO#close_on_exec= | o | |
|
||||
| IO#close_on_exec? | o | |
|
||||
| IO#close_read | | |
|
||||
| IO#close_write | | |
|
||||
| IO#closed? | o | |
|
||||
| IO#clone, IO#dup | o | |
|
||||
| IO#close | o | |
|
||||
| IO#close_on_exec= | o | |
|
||||
| IO#close_on_exec? | o | |
|
||||
| IO#close_read | | |
|
||||
| IO#close_write | | |
|
||||
| IO#closed? | o | |
|
||||
| IO#codepoints | | obsolete |
|
||||
| IO#each_byte | o | |
|
||||
| IO#each_char | o | |
|
||||
| IO#each_codepoint | | |
|
||||
| IO#each_line | o | |
|
||||
| IO#eof, IO#eof? | o | |
|
||||
| IO#external_encoding | | |
|
||||
| IO#fcntl | | |
|
||||
| IO#fdatasync | | |
|
||||
| IO#fileno, IO#to_i | o | |
|
||||
| IO#flush | o | |
|
||||
| IO#fsync | | |
|
||||
| IO#getbyte | o | |
|
||||
| IO#getc | o | |
|
||||
| IO#gets | o | |
|
||||
| IO#internal_encoding | | |
|
||||
| IO#ioctl | | |
|
||||
| IO#isatty, IO#tty? | o | |
|
||||
| IO#lineno | | |
|
||||
| IO#lineno= | | |
|
||||
| IO#each_byte | o | |
|
||||
| IO#each_char | o | |
|
||||
| IO#each_codepoint | | |
|
||||
| IO#each_line | o | |
|
||||
| IO#eof, IO#eof? | o | |
|
||||
| IO#external_encoding | | |
|
||||
| IO#fcntl | | |
|
||||
| IO#fdatasync | | |
|
||||
| IO#fileno, IO#to_i | o | |
|
||||
| IO#flush | o | |
|
||||
| IO#fsync | | |
|
||||
| IO#getbyte | o | |
|
||||
| IO#getc | o | |
|
||||
| IO#gets | o | |
|
||||
| IO#internal_encoding | | |
|
||||
| IO#ioctl | | |
|
||||
| IO#isatty, IO#tty? | o | |
|
||||
| IO#lineno | | |
|
||||
| IO#lineno= | | |
|
||||
| IO#lines | | obsolete |
|
||||
| IO#pid | o | |
|
||||
| IO#pos, IO#tell | o | |
|
||||
| IO#pos= | o | |
|
||||
| IO#print | o | |
|
||||
| IO#printf | o | |
|
||||
| IO#putc | | |
|
||||
| IO#puts | o | |
|
||||
| IO#read | o | |
|
||||
| IO#read_nonblock | | |
|
||||
| IO#readbyte | o | |
|
||||
| IO#readchar | o | |
|
||||
| IO#readline | o | |
|
||||
| IO#readlines | o | |
|
||||
| IO#readpartial | | |
|
||||
| IO#reopen | | |
|
||||
| IO#rewind | | |
|
||||
| IO#seek | o | |
|
||||
| IO#set_encoding | | |
|
||||
| IO#stat | | |
|
||||
| IO#sync | o | |
|
||||
| IO#sync= | o | |
|
||||
| IO#sysread | o | |
|
||||
| IO#sysseek | o | |
|
||||
| IO#syswrite | o | |
|
||||
| IO#to_io | | |
|
||||
| IO#ungetbyte | o | |
|
||||
| IO#ungetc | o | |
|
||||
| IO#write | o | |
|
||||
| IO#write_nonblock | | |
|
||||
| IO#pid | o | |
|
||||
| IO#pos, IO#tell | o | |
|
||||
| IO#pos= | o | |
|
||||
| IO#print | o | |
|
||||
| IO#printf | o | |
|
||||
| IO#putc | | |
|
||||
| IO#puts | o | |
|
||||
| IO#read | o | |
|
||||
| IO#read_nonblock | | |
|
||||
| IO#readbyte | o | |
|
||||
| IO#readchar | o | |
|
||||
| IO#readline | o | |
|
||||
| IO#readlines | o | |
|
||||
| IO#readpartial | | |
|
||||
| IO#reopen | | |
|
||||
| IO#rewind | | |
|
||||
| IO#seek | o | |
|
||||
| IO#set_encoding | | |
|
||||
| IO#stat | | |
|
||||
| IO#sync | o | |
|
||||
| IO#sync= | o | |
|
||||
| IO#sysread | o | |
|
||||
| IO#sysseek | o | |
|
||||
| IO#syswrite | o | |
|
||||
| IO#to_io | | |
|
||||
| IO#ungetbyte | o | |
|
||||
| IO#ungetc | o | |
|
||||
| IO#write | o | |
|
||||
| IO#write_nonblock | | |
|
||||
|
||||
### File
|
||||
|
||||
* <https://doc.ruby-lang.org/ja/1.9.3/class/File.html>
|
||||
|
||||
| method | mruby-io | memo |
|
||||
| --------------------------- | -------- | ---- |
|
||||
| File.absolute_path | | |
|
||||
| File.atime | | |
|
||||
| File.basename | o | |
|
||||
| method | mruby-io | memo |
|
||||
|-----------------------------|----------|----------|
|
||||
| File.absolute_path | | |
|
||||
| File.atime | | |
|
||||
| File.basename | o | |
|
||||
| File.blockdev? | | FileTest |
|
||||
| File.chardev? | | FileTest |
|
||||
| File.chmod | o | |
|
||||
| File.chown | | |
|
||||
| File.ctime | | |
|
||||
| File.delete, File.unlink | o | |
|
||||
| File.directory? | o | FileTest |
|
||||
| File.dirname | o | |
|
||||
| File.chmod | o | |
|
||||
| File.chown | | |
|
||||
| File.ctime | | |
|
||||
| File.delete, File.unlink | o | |
|
||||
| File.directory? | o | FileTest |
|
||||
| File.dirname | o | |
|
||||
| File.executable? | | FileTest |
|
||||
| File.executable_real? | | FileTest |
|
||||
| File.exist?, exists? | o | FileTest |
|
||||
| File.expand_path | o | |
|
||||
| File.extname | o | |
|
||||
| File.file? | o | FileTest |
|
||||
| File.fnmatch, File.fnmatch? | | |
|
||||
| File.ftype | | |
|
||||
| File.exist?, exists? | o | FileTest |
|
||||
| File.expand_path | o | |
|
||||
| File.extname | o | |
|
||||
| File.file? | o | FileTest |
|
||||
| File.fnmatch, File.fnmatch? | | |
|
||||
| File.ftype | | |
|
||||
| File.grpowned? | | FileTest |
|
||||
| File.identical? | | FileTest |
|
||||
| File.join | o | |
|
||||
| File.lchmod | | |
|
||||
| File.lchown | | |
|
||||
| File.link | | |
|
||||
| File.lstat | | |
|
||||
| File.mtime | | |
|
||||
| File.new, File.open | o | |
|
||||
| File.join | o | |
|
||||
| File.lchmod | | |
|
||||
| File.lchown | | |
|
||||
| File.link | | |
|
||||
| File.lstat | | |
|
||||
| File.mtime | | |
|
||||
| File.new, File.open | o | |
|
||||
| File.owned? | | FileTest |
|
||||
| File.path | | |
|
||||
| File.pipe? | o | FileTest |
|
||||
| File.path | | |
|
||||
| File.pipe? | o | FileTest |
|
||||
| File.readable? | | FileTest |
|
||||
| File.readable_real? | | FileTest |
|
||||
| File.readlink | o | |
|
||||
| File.realdirpath | | |
|
||||
| File.realpath | o | |
|
||||
| File.rename | o | |
|
||||
| File.readlink | o | |
|
||||
| File.realdirpath | | |
|
||||
| File.realpath | o | |
|
||||
| File.rename | o | |
|
||||
| File.setgid? | | FileTest |
|
||||
| File.setuid? | | FileTest |
|
||||
| File.size | o | |
|
||||
| File.size? | o | FileTest |
|
||||
| File.socket? | o | FileTest |
|
||||
| File.split | | |
|
||||
| File.stat | | |
|
||||
| File.size | o | |
|
||||
| File.size? | o | FileTest |
|
||||
| File.socket? | o | FileTest |
|
||||
| File.split | | |
|
||||
| File.stat | | |
|
||||
| File.sticky? | | FileTest |
|
||||
| File.symlink | | |
|
||||
| File.symlink? | o | FileTest |
|
||||
| File.truncate | | |
|
||||
| File.umask | o | |
|
||||
| File.utime | | |
|
||||
| File.world_readable? | | |
|
||||
| File.world_writable? | | |
|
||||
| File.symlink | | |
|
||||
| File.symlink? | o | FileTest |
|
||||
| File.truncate | | |
|
||||
| File.umask | o | |
|
||||
| File.utime | | |
|
||||
| File.world_readable? | | |
|
||||
| File.world_writable? | | |
|
||||
| File.writable? | | FileTest |
|
||||
| File.writable_real? | | FileTest |
|
||||
| File.zero? | o | FileTest |
|
||||
| File#atime | | |
|
||||
| File#chmod | | |
|
||||
| File#chown | | |
|
||||
| File#ctime | | |
|
||||
| File#flock | o | |
|
||||
| File#lstat | | |
|
||||
| File#mtime | | |
|
||||
| File#path, File#to_path | o | |
|
||||
| File#size | | |
|
||||
| File#truncate | | |
|
||||
| File.zero? | o | FileTest |
|
||||
| File#atime | | |
|
||||
| File#chmod | | |
|
||||
| File#chown | | |
|
||||
| File#ctime | | |
|
||||
| File#flock | o | |
|
||||
| File#lstat | | |
|
||||
| File#mtime | | |
|
||||
| File#path, File#to_path | o | |
|
||||
| File#size | | |
|
||||
| File#truncate | | |
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user