refe 0.8.0.2 → 0.8.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.gems +14 -0
- data/data/refe/class_document/-open-s-s-l%3a%3a-cipher%3a%3a-cipher +4 -2
- data/data/refe/class_document/-re-fe +3 -0
- data/data/refe/class_document/-struct%3a%3a-x-x-x +0 -0
- data/data/refe/class_document_comp +1 -0
- data/data/refe/function_source/-init/-array +1 -1
- data/data/refe/function_source/-init/-bignum +1 -1
- data/data/refe/function_source/-init/-binding +1 -1
- data/data/refe/function_source/-init/-file +3 -1
- data/data/refe/function_source/-init/-g-c +2 -2
- data/data/refe/function_source/-init/-i-o +7 -8
- data/data/refe/function_source/-init/-numeric +1 -1
- data/data/refe/function_source/-init/-object +4 -4
- data/data/refe/function_source/-init/-proc +3 -3
- data/data/refe/function_source/-init/-regexp +1 -1
- data/data/refe/function_source/-init/-thread +2 -2
- data/data/refe/function_source/-init/eval +3 -3
- data/data/refe/function_source/-init/heap +1 -1
- data/data/refe/function_source/-init/load +4 -4
- data/data/refe/function_source/-init/process +1 -1
- data/data/refe/function_source/-init/stack +1 -1
- data/data/refe/function_source/-init/sym +1 -1
- data/data/refe/function_source/add/final +1 -1
- data/data/refe/function_source/appendline +1 -1
- data/data/refe/function_source/apply2files +3 -2
- data/data/refe/function_source/arg/add +1 -1
- data/data/refe/function_source/arg/ambiguous +1 -1
- data/data/refe/function_source/arg/blk/pass +1 -1
- data/data/refe/function_source/arg/concat +1 -1
- data/data/refe/function_source/arg/prepend +1 -1
- data/data/refe/function_source/argf/binmode +1 -1
- data/data/refe/function_source/argf/close/- +1 -1
- data/data/refe/function_source/argf/close/m +1 -1
- data/data/refe/function_source/argf/closed +1 -1
- data/data/refe/function_source/argf/each/byte +1 -1
- data/data/refe/function_source/argf/each/line +1 -1
- data/data/refe/function_source/argf/eof +1 -1
- data/data/refe/function_source/argf/file +1 -1
- data/data/refe/function_source/argf/filename +1 -1
- data/data/refe/function_source/argf/fileno +1 -1
- data/data/refe/function_source/argf/forward +1 -1
- data/data/refe/function_source/argf/getc +1 -1
- data/data/refe/function_source/argf/getline +1 -1
- data/data/refe/function_source/argf/lineno +1 -1
- data/data/refe/function_source/argf/read +1 -1
- data/data/refe/function_source/argf/readchar +1 -1
- data/data/refe/function_source/argf/rewind +1 -1
- data/data/refe/function_source/argf/seek/m +1 -1
- data/data/refe/function_source/argf/set/lineno +1 -1
- data/data/refe/function_source/argf/set/pos +1 -1
- data/data/refe/function_source/argf/skip +1 -1
- data/data/refe/function_source/argf/tell +1 -1
- data/data/refe/function_source/argf/to/io +1 -1
- data/data/refe/function_source/argf/to/s +1 -1
- data/data/refe/function_source/ary/make/hash +1 -1
- data/data/refe/function_source/ary/sort/check +1 -1
- data/data/refe/function_source/aryset +1 -1
- data/data/refe/function_source/asc/startpos +1 -1
- data/data/refe/function_source/assign/- +1 -1
- data/data/refe/function_source/assign/in/cond +1 -1
- data/data/refe/function_source/assignable +1 -1
- data/data/refe/function_source/attrset +1 -1
- data/data/refe/function_source/autoload/delete +1 -1
- data/data/refe/function_source/autoload/file +1 -1
- data/data/refe/function_source/avalue/splat +1 -1
- data/data/refe/function_source/avalue/to/svalue +1 -1
- data/data/refe/function_source/backtrace +1 -1
- data/data/refe/function_source/be/chown +12 -0
- data/data/refe/function_source/be/fchown +12 -0
- data/data/refe/function_source/bignew/1 +1 -1
- data/data/refe/function_source/bigsub +1 -1
- data/data/refe/function_source/blk/copy/prev +1 -1
- data/data/refe/function_source/blk/dup +1 -1
- data/data/refe/function_source/blk/free +1 -1
- data/data/refe/function_source/blk/mark +1 -1
- data/data/refe/function_source/block/append +1 -1
- data/data/refe/function_source/block/orphan +1 -1
- data/data/refe/function_source/block/pass +1 -1
- data/data/refe/function_source/bm/init/skip +1 -1
- data/data/refe/function_source/bm/mark +1 -1
- data/data/refe/function_source/bm/search +1 -1
- data/data/refe/function_source/bmcall +5 -2
- data/data/refe/function_source/boot/defclass +1 -1
- data/data/refe/function_source/break/jump +1 -1
- data/data/refe/function_source/call/cfunc +1 -1
- data/data/refe/function_source/call/end/proc +1 -1
- data/data/refe/function_source/call/final +1 -1
- data/data/refe/function_source/call/op +1 -1
- data/data/refe/function_source/call/trace/func +2 -2
- data/data/refe/function_source/catch/i +1 -1
- data/data/refe/function_source/catch/timer +1 -1
- data/data/refe/function_source/check/autoload/table +1 -1
- data/data/refe/function_source/check/gid/switch +1 -1
- data/data/refe/function_source/check/int +1 -1
- data/data/refe/function_source/check/uid/switch +1 -1
- data/data/refe/function_source/check/uint +1 -1
- data/data/refe/function_source/check3rdbyte +1 -1
- data/data/refe/function_source/chmod/internal +4 -3
- data/data/refe/function_source/chown/internal +5 -3
- data/data/refe/function_source/class/instance/method/list +1 -1
- data/data/refe/function_source/class/prefix +1 -1
- data/data/refe/function_source/compile/- +1 -1
- data/data/refe/function_source/cond/- +1 -1
- data/data/refe/function_source/cond/negative +1 -1
- data/data/refe/function_source/cond0 +1 -1
- data/data/refe/function_source/const/missing +1 -1
- data/data/refe/function_source/conv/to/posix/path +1 -0
- data/data/refe/function_source/convert/type +1 -1
- data/data/refe/function_source/copy/fds +1 -1
- data/data/refe/function_source/cv/i +1 -1
- data/data/refe/function_source/cvar/override/check +1 -1
- data/data/refe/function_source/deferr/setter +1 -1
- data/data/refe/function_source/define/filetest/function +1 -1
- data/data/refe/function_source/define/final +1 -1
- data/data/refe/function_source/defout/setter +1 -1
- data/data/refe/function_source/delete/never +1 -1
- data/data/refe/function_source/dispose/string +2 -2
- data/data/refe/function_source/dln/find/1 +1 -1
- data/data/refe/function_source/dyna/in/block +1 -1
- data/data/refe/function_source/dyna/init +1 -1
- data/data/refe/function_source/dyna/pop +1 -1
- data/data/refe/function_source/dyna/push +1 -1
- data/data/refe/function_source/e/option/supplied +1 -1
- data/data/refe/function_source/eaccess +1 -1
- data/data/refe/function_source/errat/getter +1 -1
- data/data/refe/function_source/errat/setter +1 -1
- data/data/refe/function_source/errinfo/setter +1 -1
- data/data/refe/function_source/euc/startpos +1 -1
- data/data/refe/function_source/ev/const/get +1 -1
- data/data/refe/function_source/eval/- +1 -1
- data/data/refe/function_source/eval/under/- +1 -1
- data/data/refe/function_source/eval/under/i +6 -1
- data/data/refe/function_source/evstr2dstr +1 -1
- data/data/refe/function_source/exec/under +8 -6
- data/data/refe/function_source/false/and +1 -1
- data/data/refe/function_source/false/or +1 -1
- data/data/refe/function_source/false/to/s +1 -1
- data/data/refe/function_source/false/xor +1 -1
- data/data/refe/function_source/file/expand/path +1 -1
- data/data/refe/function_source/file/inspect/join +1 -1
- data/data/refe/function_source/file/load/ok +1 -1
- data/data/refe/function_source/finalize/list +1 -1
- data/data/refe/function_source/finals +1 -1
- data/data/refe/function_source/find/bad/fds +1 -1
- data/data/refe/function_source/fix/abs +1 -1
- data/data/refe/function_source/fix/and +1 -1
- data/data/refe/function_source/fix/aref +1 -1
- data/data/refe/function_source/fix/cmp +1 -1
- data/data/refe/function_source/fix/div +1 -1
- data/data/refe/function_source/fix/divmod +1 -1
- data/data/refe/function_source/fix/equal +1 -1
- data/data/refe/function_source/fix/ge +1 -1
- data/data/refe/function_source/fix/gt +1 -1
- data/data/refe/function_source/fix/id2name +1 -1
- data/data/refe/function_source/fix/le +1 -1
- data/data/refe/function_source/fix/lshift +1 -1
- data/data/refe/function_source/fix/lt +1 -1
- data/data/refe/function_source/fix/minus +1 -1
- data/data/refe/function_source/fix/mod +1 -1
- data/data/refe/function_source/fix/mul +1 -1
- data/data/refe/function_source/fix/or +1 -1
- data/data/refe/function_source/fix/plus +1 -1
- data/data/refe/function_source/fix/pow +1 -1
- data/data/refe/function_source/fix/quo +1 -1
- data/data/refe/function_source/fix/rev +1 -1
- data/data/refe/function_source/fix/rshift +1 -1
- data/data/refe/function_source/fix/size +1 -1
- data/data/refe/function_source/fix/to/f +1 -1
- data/data/refe/function_source/fix/to/s +1 -1
- data/data/refe/function_source/fix/to/sym +1 -1
- data/data/refe/function_source/fix/uminus +1 -1
- data/data/refe/function_source/fix/xor +1 -1
- data/data/refe/function_source/fix/zero/p +1 -1
- data/data/refe/function_source/fixdivmod +1 -1
- data/data/refe/function_source/fixpos +1 -1
- data/data/refe/function_source/flatten +1 -1
- data/data/refe/function_source/flo/abs +1 -1
- data/data/refe/function_source/flo/ceil +1 -1
- data/data/refe/function_source/flo/cmp +1 -1
- data/data/refe/function_source/flo/coerce +1 -1
- data/data/refe/function_source/flo/div +1 -1
- data/data/refe/function_source/flo/divmod +1 -1
- data/data/refe/function_source/flo/eq +1 -1
- data/data/refe/function_source/flo/eql +1 -1
- data/data/refe/function_source/flo/floor +1 -1
- data/data/refe/function_source/flo/ge +1 -1
- data/data/refe/function_source/flo/gt +1 -1
- data/data/refe/function_source/flo/hash +1 -1
- data/data/refe/function_source/flo/is/finite/p +1 -1
- data/data/refe/function_source/flo/is/infinite/p +1 -1
- data/data/refe/function_source/flo/is/nan/p +1 -1
- data/data/refe/function_source/flo/le +1 -1
- data/data/refe/function_source/flo/lt +1 -1
- data/data/refe/function_source/flo/minus +1 -1
- data/data/refe/function_source/flo/mod +1 -1
- data/data/refe/function_source/flo/mul +1 -1
- data/data/refe/function_source/flo/plus +1 -1
- data/data/refe/function_source/flo/pow +1 -1
- data/data/refe/function_source/flo/round +1 -1
- data/data/refe/function_source/flo/to/f +1 -1
- data/data/refe/function_source/flo/to/s +1 -1
- data/data/refe/function_source/flo/truncate +1 -1
- data/data/refe/function_source/flo/uminus +1 -1
- data/data/refe/function_source/flo/zero/p +1 -1
- data/data/refe/function_source/flodivmod +1 -1
- data/data/refe/function_source/flush/before/seek +1 -1
- data/data/refe/function_source/flush/register/windows +1 -1
- data/data/refe/function_source/fmt/setup +1 -1
- data/data/refe/function_source/fpath/check +1 -1
- data/data/refe/function_source/fptr/finalize +1 -1
- data/data/refe/function_source/frame/dup +1 -1
- data/data/refe/function_source/frame/free +1 -1
- data/data/refe/function_source/free/unused/heaps +1 -1
- data/data/refe/function_source/garbage/collect +1 -1
- data/data/refe/function_source/gc/mark/children +0 -2
- data/data/refe/function_source/gc/sweep +4 -2
- data/data/refe/function_source/generic/ivar/defined +1 -1
- data/data/refe/function_source/generic/ivar/get +1 -1
- data/data/refe/function_source/generic/ivar/remove +1 -1
- data/data/refe/function_source/generic/ivar/set +1 -1
- data/data/refe/function_source/get/event/name +1 -1
- data/data/refe/function_source/get/inspect/tbl +1 -1
- data/data/refe/function_source/get/stat +1 -1
- data/data/refe/function_source/getcwdofdrv +1 -1
- data/data/refe/function_source/gettable +1 -1
- data/data/refe/function_source/givar/i +1 -1
- data/data/refe/function_source/givar/mark/i +1 -1
- data/data/refe/function_source/global/id +1 -1
- data/data/refe/function_source/group/member +1 -1
- data/data/refe/function_source/gvar/i +1 -1
- data/data/refe/function_source/handle/rescue +1 -1
- data/data/refe/function_source/has/drive/letter +1 -1
- data/data/refe/function_source/here/document +1 -1
- data/data/refe/function_source/heredoc/identifier +1 -1
- data/data/refe/function_source/heredoc/restore +1 -1
- data/data/refe/function_source/id2ref +1 -1
- data/data/refe/function_source/ignorecase/getter +1 -1
- data/data/refe/function_source/ignorecase/setter +1 -1
- data/data/refe/function_source/include/class/new +1 -1
- data/data/refe/function_source/init/regs +1 -1
- data/data/refe/function_source/ins/methods/i +1 -1
- data/data/refe/function_source/ins/methods/priv/i +1 -1
- data/data/refe/function_source/ins/methods/prot/i +1 -1
- data/data/refe/function_source/ins/methods/pub/i +1 -1
- data/data/refe/function_source/ins/methods/push +1 -1
- data/data/refe/function_source/insert/jump/- +1 -1
- data/data/refe/function_source/insert/jump/n +1 -1
- data/data/refe/function_source/insert/op/- +1 -1
- data/data/refe/function_source/insert/op/2 +1 -1
- data/data/refe/function_source/inspect/ary +1 -1
- data/data/refe/function_source/inspect/call +1 -1
- data/data/refe/function_source/inspect/ensure +1 -1
- data/data/refe/function_source/inspect/i +1 -1
- data/data/refe/function_source/inspect/join +1 -1
- data/data/refe/function_source/inspect/obj +1 -1
- data/data/refe/function_source/int/chr +1 -1
- data/data/refe/function_source/int/dotimes +1 -1
- data/data/refe/function_source/int/downto +1 -1
- data/data/refe/function_source/int/int/p +1 -1
- data/data/refe/function_source/int/succ +1 -1
- data/data/refe/function_source/int/to/i +1 -1
- data/data/refe/function_source/int/upto +1 -1
- data/data/refe/function_source/internal/id +1 -1
- data/data/refe/function_source/intersect/fds +1 -1
- data/data/refe/function_source/io/alloc +1 -1
- data/data/refe/function_source/io/close +1 -1
- data/data/refe/function_source/io/cntl +1 -1
- data/data/refe/function_source/io/fflush +1 -1
- data/data/refe/function_source/io/fread +1 -1
- data/data/refe/function_source/io/fwrite +1 -1
- data/data/refe/function_source/io/getpartial +1 -1
- data/data/refe/function_source/io/new/instance +1 -1
- data/data/refe/function_source/io/puts/ary +1 -1
- data/data/refe/function_source/io/read +1 -1
- data/data/refe/function_source/io/readpartial +1 -1
- data/data/refe/function_source/io/reopen +1 -1
- data/data/refe/function_source/io/s/foreach +1 -1
- data/data/refe/function_source/io/s/read +1 -1
- data/data/refe/function_source/io/s/readlines +1 -1
- data/data/refe/function_source/io/write +1 -1
- data/data/refe/function_source/is/absolute/path +1 -1
- data/data/refe/function_source/is/macos/native/path +1 -1
- data/data/refe/function_source/is/special/global/name +23 -0
- data/data/refe/function_source/ivar/get +1 -1
- data/data/refe/function_source/ivar/i +1 -1
- data/data/refe/function_source/kcode/getter +1 -1
- data/data/refe/function_source/kcode/setter +1 -1
- data/data/refe/function_source/last/match/getter +1 -1
- data/data/refe/function_source/last/paren/match/getter +1 -1
- data/data/refe/function_source/lchmod/internal +4 -3
- data/data/refe/function_source/lchown/internal +5 -3
- data/data/refe/function_source/lex/get/str +1 -1
- data/data/refe/function_source/lex/getline +1 -1
- data/data/refe/function_source/lineno/setter +1 -1
- data/data/refe/function_source/list/append +1 -1
- data/data/refe/function_source/list/concat +1 -1
- data/data/refe/function_source/list/i +1 -1
- data/data/refe/function_source/literal/concat +1 -1
- data/data/refe/function_source/literal/node +1 -1
- data/data/refe/function_source/load/failed +1 -1
- data/data/refe/function_source/load/wait +6 -6
- data/data/refe/function_source/local/append +1 -1
- data/data/refe/function_source/local/cnt +1 -1
- data/data/refe/function_source/local/id +1 -1
- data/data/refe/function_source/local/pop +3 -3
- data/data/refe/function_source/local/push +1 -1
- data/data/refe/function_source/local/tbl +1 -1
- data/data/refe/function_source/logop +1 -1
- data/data/refe/function_source/main/to/s +1 -1
- data/data/refe/function_source/make/backtrace +1 -1
- data/data/refe/function_source/mark/frame/adj +1 -1
- data/data/refe/function_source/mark/hash +1 -1
- data/data/refe/function_source/mark/tbl +1 -1
- data/data/refe/function_source/massign +1 -1
- data/data/refe/function_source/match/aref +1 -1
- data/data/refe/function_source/match/array +1 -1
- data/data/refe/function_source/match/begin +1 -1
- data/data/refe/function_source/match/captures +1 -1
- data/data/refe/function_source/match/end +1 -1
- data/data/refe/function_source/match/entry +1 -1
- data/data/refe/function_source/match/fds +1 -1
- data/data/refe/function_source/match/gen +1 -1
- data/data/refe/function_source/match/getter +1 -1
- data/data/refe/function_source/match/init/copy +1 -1
- data/data/refe/function_source/match/offset +1 -1
- data/data/refe/function_source/match/select +1 -1
- data/data/refe/function_source/match/setter +1 -1
- data/data/refe/function_source/match/size +1 -1
- data/data/refe/function_source/match/string +1 -1
- data/data/refe/function_source/match/to/a +1 -1
- data/data/refe/function_source/match/to/s +1 -1
- data/data/refe/function_source/match/values/at +1 -1
- data/data/refe/function_source/memcmp/translate +1 -1
- data/data/refe/function_source/method/arity +1 -1
- data/data/refe/function_source/method/call +1 -1
- data/data/refe/function_source/method/clone +1 -1
- data/data/refe/function_source/method/entry +1 -1
- data/data/refe/function_source/method/eq +1 -1
- data/data/refe/function_source/method/inspect +1 -1
- data/data/refe/function_source/method/missing +1 -1
- data/data/refe/function_source/method/proc +1 -1
- data/data/refe/function_source/method/unbind +1 -1
- data/data/refe/function_source/mnew +1 -1
- data/data/refe/function_source/mod/av/set +1 -1
- data/data/refe/function_source/module/setup +1 -1
- data/data/refe/function_source/mproc +1 -1
- data/data/refe/function_source/must/respond/to +1 -1
- data/data/refe/function_source/negate/lit +1 -1
- data/data/refe/function_source/new/call +1 -1
- data/data/refe/function_source/new/evstr +1 -1
- data/data/refe/function_source/new/fcall +1 -1
- data/data/refe/function_source/new/size +1 -1
- data/data/refe/function_source/new/super +1 -1
- data/data/refe/function_source/new/yield +1 -1
- data/data/refe/function_source/newline/node +1 -1
- data/data/refe/function_source/newtok +1 -1
- data/data/refe/function_source/next/argv +1 -1
- data/data/refe/function_source/nextc +1 -1
- data/data/refe/function_source/nil/inspect +1 -1
- data/data/refe/function_source/nil/plus +1 -1
- data/data/refe/function_source/nil/to/a +1 -1
- data/data/refe/function_source/nil/to/f +1 -1
- data/data/refe/function_source/nil/to/i +1 -1
- data/data/refe/function_source/nil/to/s +1 -1
- data/data/refe/function_source/no/blockarg +1 -1
- data/data/refe/function_source/node/assign +1 -1
- data/data/refe/function_source/nodeline +1 -1
- data/data/refe/function_source/nodetype +1 -1
- data/data/refe/function_source/num/abs +1 -1
- data/data/refe/function_source/num/ceil +1 -1
- data/data/refe/function_source/num/cmp +1 -1
- data/data/refe/function_source/num/div +1 -1
- data/data/refe/function_source/num/divmod +1 -1
- data/data/refe/function_source/num/eql +1 -1
- data/data/refe/function_source/num/equal +1 -1
- data/data/refe/function_source/num/floor +1 -1
- data/data/refe/function_source/num/init/copy +1 -1
- data/data/refe/function_source/num/int/p +1 -1
- data/data/refe/function_source/num/modulo +1 -1
- data/data/refe/function_source/num/nonzero/p +1 -1
- data/data/refe/function_source/num/quo +1 -1
- data/data/refe/function_source/num/remainder +1 -1
- data/data/refe/function_source/num/round +1 -1
- data/data/refe/function_source/num/step +1 -1
- data/data/refe/function_source/num/to/int +1 -1
- data/data/refe/function_source/num/truncate +1 -1
- data/data/refe/function_source/num/uminus +1 -1
- data/data/refe/function_source/num/uplus +1 -1
- data/data/refe/function_source/num/zero/p +1 -1
- data/data/refe/function_source/numcmp +1 -1
- data/data/refe/function_source/numhash +1 -1
- data/data/refe/function_source/obj/free +0 -2
- data/data/refe/function_source/obj/respond/to +17 -0
- data/data/refe/function_source/opt/i/get +1 -1
- data/data/refe/function_source/opt/i/set +1 -1
- data/data/refe/function_source/original/module +1 -1
- data/data/refe/function_source/os/each/obj +1 -1
- data/data/refe/function_source/os/live/obj +1 -1
- data/data/refe/function_source/os/obj/of +1 -1
- data/data/refe/function_source/p/gid/change/privilege +1 -1
- data/data/refe/function_source/p/gid/exchange +1 -1
- data/data/refe/function_source/p/gid/exchangeable +1 -1
- data/data/refe/function_source/p/gid/grant/privilege +1 -1
- data/data/refe/function_source/p/gid/have/saved/id +1 -1
- data/data/refe/function_source/p/gid/sw/ensure +1 -1
- data/data/refe/function_source/p/gid/switch +1 -1
- data/data/refe/function_source/p/sys/issetugid +1 -1
- data/data/refe/function_source/p/sys/setegid +1 -1
- data/data/refe/function_source/p/sys/seteuid +1 -1
- data/data/refe/function_source/p/sys/setgid +1 -1
- data/data/refe/function_source/p/sys/setregid +1 -1
- data/data/refe/function_source/p/sys/setresgid +1 -1
- data/data/refe/function_source/p/sys/setresuid +1 -1
- data/data/refe/function_source/p/sys/setreuid +1 -1
- data/data/refe/function_source/p/sys/setrgid +1 -1
- data/data/refe/function_source/p/sys/setruid +1 -1
- data/data/refe/function_source/p/sys/setuid +1 -1
- data/data/refe/function_source/p/uid/change/privilege +1 -1
- data/data/refe/function_source/p/uid/exchange +1 -1
- data/data/refe/function_source/p/uid/exchangeable +1 -1
- data/data/refe/function_source/p/uid/grant/privilege +1 -1
- data/data/refe/function_source/p/uid/have/saved/id +1 -1
- data/data/refe/function_source/p/uid/sw/ensure +1 -1
- data/data/refe/function_source/p/uid/switch +1 -1
- data/data/refe/function_source/parse/string +1 -1
- data/data/refe/function_source/parser/warn +1 -1
- data/data/refe/function_source/parser/warning +1 -1
- data/data/refe/function_source/path/check/0 +1 -1
- data/data/refe/function_source/pipe/add/fptr +1 -1
- data/data/refe/function_source/pipe/atexit +1 -1
- data/data/refe/function_source/pipe/del/fptr +1 -1
- data/data/refe/function_source/pipe/finalize +1 -1
- data/data/refe/function_source/pipe/open +1 -1
- data/data/refe/function_source/postmatch/getter +1 -1
- data/data/refe/function_source/prematch/getter +1 -1
- data/data/refe/function_source/prep/path +1 -1
- data/data/refe/function_source/prep/stdio +1 -1
- data/data/refe/function_source/proc/alloc +1 -1
- data/data/refe/function_source/proc/arity +1 -1
- data/data/refe/function_source/proc/binding +1 -1
- data/data/refe/function_source/proc/call +1 -1
- data/data/refe/function_source/proc/clone +1 -1
- data/data/refe/function_source/proc/dup +1 -1
- data/data/refe/function_source/proc/eq +1 -1
- data/data/refe/function_source/proc/get/safe/level +1 -1
- data/data/refe/function_source/proc/getegid +1 -1
- data/data/refe/function_source/proc/geteuid +1 -1
- data/data/refe/function_source/proc/getgid +1 -1
- data/data/refe/function_source/proc/getgroups +1 -1
- data/data/refe/function_source/proc/getmaxgroups +1 -1
- data/data/refe/function_source/proc/getpgid +1 -1
- data/data/refe/function_source/proc/getpgrp +1 -1
- data/data/refe/function_source/proc/getpriority +1 -1
- data/data/refe/function_source/proc/getuid +1 -1
- data/data/refe/function_source/proc/initgroups +1 -1
- data/data/refe/function_source/proc/invoke +1 -1
- data/data/refe/function_source/proc/jump/error +1 -1
- data/data/refe/function_source/proc/lambda +1 -1
- data/data/refe/function_source/proc/s/new +1 -1
- data/data/refe/function_source/proc/save/safe/level +1 -1
- data/data/refe/function_source/proc/set/safe/level +1 -1
- data/data/refe/function_source/proc/setegid +1 -1
- data/data/refe/function_source/proc/seteuid +1 -1
- data/data/refe/function_source/proc/setgid +1 -1
- data/data/refe/function_source/proc/setgroups +1 -1
- data/data/refe/function_source/proc/setmaxgroups +1 -1
- data/data/refe/function_source/proc/setpgid +1 -1
- data/data/refe/function_source/proc/setpgrp +1 -1
- data/data/refe/function_source/proc/setpriority +1 -1
- data/data/refe/function_source/proc/setsid +1 -1
- data/data/refe/function_source/proc/setuid +1 -1
- data/data/refe/function_source/proc/to/s +1 -1
- data/data/refe/function_source/proc/to/self +1 -1
- data/data/refe/function_source/pushback +1 -1
- data/data/refe/function_source/r/object0 +1 -1
- data/data/refe/function_source/range/op +1 -1
- data/data/refe/function_source/rb/-array +1 -1
- data/data/refe/function_source/rb/-float +1 -1
- data/data/refe/function_source/rb/-integer +1 -1
- data/data/refe/function_source/rb/-string +1 -1
- data/data/refe/function_source/rb/alias/variable +1 -1
- data/data/refe/function_source/rb/any/to/a +1 -1
- data/data/refe/function_source/rb/any/to/s +1 -1
- data/data/refe/function_source/rb/apply +1 -1
- data/data/refe/function_source/rb/ary/and +1 -1
- data/data/refe/function_source/rb/ary/aset +1 -1
- data/data/refe/function_source/rb/ary/assoc +1 -1
- data/data/refe/function_source/rb/ary/clear +1 -1
- data/data/refe/function_source/rb/ary/cmp +1 -1
- data/data/refe/function_source/rb/ary/collect/- +1 -1
- data/data/refe/function_source/rb/ary/collect/bang +1 -1
- data/data/refe/function_source/rb/ary/compact/- +1 -1
- data/data/refe/function_source/rb/ary/compact/bang +1 -1
- data/data/refe/function_source/rb/ary/concat +1 -1
- data/data/refe/function_source/rb/ary/delete/- +1 -1
- data/data/refe/function_source/rb/ary/delete/at/- +1 -1
- data/data/refe/function_source/rb/ary/delete/at/m +1 -1
- data/data/refe/function_source/rb/ary/delete/if +1 -1
- data/data/refe/function_source/rb/ary/diff +3 -2
- data/data/refe/function_source/rb/ary/dup +1 -1
- data/data/refe/function_source/rb/ary/each/- +1 -1
- data/data/refe/function_source/rb/ary/each/index +1 -1
- data/data/refe/function_source/rb/ary/empty/p +1 -1
- data/data/refe/function_source/rb/ary/eql +1 -1
- data/data/refe/function_source/rb/ary/equal +1 -1
- data/data/refe/function_source/rb/ary/fetch +1 -1
- data/data/refe/function_source/rb/ary/fill +2 -4
- data/data/refe/function_source/rb/ary/first +1 -1
- data/data/refe/function_source/rb/ary/flatten/- +1 -1
- data/data/refe/function_source/rb/ary/flatten/bang +1 -1
- data/data/refe/function_source/rb/ary/hash +1 -1
- data/data/refe/function_source/rb/ary/includes +1 -1
- data/data/refe/function_source/rb/ary/index +1 -1
- data/data/refe/function_source/rb/ary/indexes +1 -1
- data/data/refe/function_source/rb/ary/insert +3 -4
- data/data/refe/function_source/rb/ary/inspect +1 -1
- data/data/refe/function_source/rb/ary/join/- +1 -1
- data/data/refe/function_source/rb/ary/join/m +1 -1
- data/data/refe/function_source/rb/ary/last +1 -1
- data/data/refe/function_source/rb/ary/length +1 -1
- data/data/refe/function_source/rb/ary/nitems +1 -1
- data/data/refe/function_source/rb/ary/or +1 -1
- data/data/refe/function_source/rb/ary/plus +1 -1
- data/data/refe/function_source/rb/ary/rassoc +1 -1
- data/data/refe/function_source/rb/ary/reject/- +1 -1
- data/data/refe/function_source/rb/ary/reject/bang +1 -1
- data/data/refe/function_source/rb/ary/replace +1 -1
- data/data/refe/function_source/rb/ary/reverse/- +1 -1
- data/data/refe/function_source/rb/ary/reverse/bang +1 -1
- data/data/refe/function_source/rb/ary/reverse/each +1 -1
- data/data/refe/function_source/rb/ary/reverse/m +1 -1
- data/data/refe/function_source/rb/ary/rindex +1 -1
- data/data/refe/function_source/rb/ary/select +1 -1
- data/data/refe/function_source/rb/ary/slice/bang +1 -1
- data/data/refe/function_source/rb/ary/sort/- +1 -1
- data/data/refe/function_source/rb/ary/sort/bang +1 -1
- data/data/refe/function_source/rb/ary/splice +1 -1
- data/data/refe/function_source/rb/ary/times +1 -1
- data/data/refe/function_source/rb/ary/to/a +1 -1
- data/data/refe/function_source/rb/ary/to/ary/- +1 -1
- data/data/refe/function_source/rb/ary/to/ary/m +1 -1
- data/data/refe/function_source/rb/ary/to/s +1 -1
- data/data/refe/function_source/rb/ary/transpose +1 -1
- data/data/refe/function_source/rb/ary/uniq/- +1 -1
- data/data/refe/function_source/rb/ary/uniq/bang +1 -1
- data/data/refe/function_source/rb/ary/values/at +1 -1
- data/data/refe/function_source/rb/ary/zip +1 -1
- data/data/refe/function_source/rb/attr/get +1 -1
- data/data/refe/function_source/rb/autoload/- +1 -1
- data/data/refe/function_source/rb/autoload/load +4 -4
- data/data/refe/function_source/rb/autoload/p +1 -1
- data/data/refe/function_source/rb/backref/error +1 -1
- data/data/refe/function_source/rb/backref/get +1 -1
- data/data/refe/function_source/rb/backref/set +1 -1
- data/data/refe/function_source/rb/backtrace +1 -1
- data/data/refe/function_source/rb/big/abs +1 -1
- data/data/refe/function_source/rb/big/aref +1 -1
- data/data/refe/function_source/rb/big/coerce +1 -1
- data/data/refe/function_source/rb/big/hash +1 -1
- data/data/refe/function_source/rb/big/rand +1 -1
- data/data/refe/function_source/rb/big/rshift +2 -1
- data/data/refe/function_source/rb/big/size +1 -1
- data/data/refe/function_source/rb/block/given/p +1 -1
- data/data/refe/function_source/rb/block/proc +1 -1
- data/data/refe/function_source/rb/call/- +4 -4
- data/data/refe/function_source/rb/call/super +5 -2
- data/data/refe/function_source/rb/call0 +1 -1
- data/data/refe/function_source/rb/callcc +1 -1
- data/data/refe/function_source/rb/catch +1 -1
- data/data/refe/function_source/rb/check/convert/type +1 -1
- data/data/refe/function_source/rb/check/inheritable +1 -1
- data/data/refe/function_source/rb/class/allocate/instance +1 -1
- data/data/refe/function_source/rb/class/inherited/- +1 -1
- data/data/refe/function_source/rb/class/inherited/p +1 -1
- data/data/refe/function_source/rb/class/init/copy +1 -1
- data/data/refe/function_source/rb/class/initialize +1 -1
- data/data/refe/function_source/rb/class/instance/methods +1 -1
- data/data/refe/function_source/rb/class/new/instance +1 -1
- data/data/refe/function_source/rb/class/private/instance/methods +1 -1
- data/data/refe/function_source/rb/class/protected/instance/methods +1 -1
- data/data/refe/function_source/rb/class/public/instance/methods +1 -1
- data/data/refe/function_source/rb/class/s/alloc +1 -1
- data/data/refe/function_source/rb/class/superclass +1 -1
- data/data/refe/function_source/rb/compile/cstr +1 -1
- data/data/refe/function_source/rb/compile/file +1 -1
- data/data/refe/function_source/rb/compile/string +1 -1
- data/data/refe/function_source/rb/const/defined/- +1 -1
- data/data/refe/function_source/rb/const/defined/0 +1 -1
- data/data/refe/function_source/rb/const/defined/at +1 -1
- data/data/refe/function_source/rb/const/defined/from +1 -1
- data/data/refe/function_source/rb/const/get/- +1 -1
- data/data/refe/function_source/rb/const/get/0 +2 -2
- data/data/refe/function_source/rb/const/get/at +1 -1
- data/data/refe/function_source/rb/const/get/from +1 -1
- data/data/refe/function_source/rb/const/list +1 -1
- data/data/refe/function_source/rb/const/set +1 -1
- data/data/refe/function_source/rb/cont/call +1 -1
- data/data/refe/function_source/rb/convert/type +1 -1
- data/data/refe/function_source/rb/copy/generic/ivar +1 -1
- data/data/refe/function_source/rb/cstr/to/dbl +1 -1
- data/data/refe/function_source/rb/cv/get +1 -1
- data/data/refe/function_source/rb/cv/set +1 -1
- data/data/refe/function_source/rb/cvar/defined +1 -1
- data/data/refe/function_source/rb/cvar/get +1 -1
- data/data/refe/function_source/rb/cvar/set +1 -1
- data/data/refe/function_source/rb/dbl/cmp +1 -1
- data/data/refe/function_source/rb/define/alias +1 -1
- data/data/refe/function_source/rb/define/attr +1 -1
- data/data/refe/function_source/rb/define/class/- +1 -1
- data/data/refe/function_source/rb/define/class/id +1 -1
- data/data/refe/function_source/rb/define/class/under +1 -1
- data/data/refe/function_source/rb/define/class/variable +1 -1
- data/data/refe/function_source/rb/define/const +1 -1
- data/data/refe/function_source/rb/define/global/const +1 -1
- data/data/refe/function_source/rb/define/global/function +1 -1
- data/data/refe/function_source/rb/define/hooked/variable +1 -1
- data/data/refe/function_source/rb/define/method/- +1 -1
- data/data/refe/function_source/rb/define/method/id +1 -1
- data/data/refe/function_source/rb/define/module/- +1 -1
- data/data/refe/function_source/rb/define/module/function +1 -1
- data/data/refe/function_source/rb/define/module/id +1 -1
- data/data/refe/function_source/rb/define/module/under +1 -1
- data/data/refe/function_source/rb/define/private/method +1 -1
- data/data/refe/function_source/rb/define/protected/method +1 -1
- data/data/refe/function_source/rb/define/readonly/variable +1 -1
- data/data/refe/function_source/rb/define/singleton/method +1 -1
- data/data/refe/function_source/rb/define/variable +1 -1
- data/data/refe/function_source/rb/define/virtual/variable +1 -1
- data/data/refe/function_source/rb/ensure +1 -1
- data/data/refe/function_source/rb/eof/error +1 -1
- data/data/refe/function_source/rb/eval/- +1 -1
- data/data/refe/function_source/rb/exc/fatal +1 -1
- data/data/refe/function_source/rb/exc/raise +1 -1
- data/data/refe/function_source/rb/exec/end/proc +1 -1
- data/data/refe/function_source/rb/exit +1 -1
- data/data/refe/function_source/rb/extend/object +1 -1
- data/data/refe/function_source/rb/f/-e-n-d +1 -1
- data/data/refe/function_source/rb/f/abort +1 -1
- data/data/refe/function_source/rb/f/array +1 -1
- data/data/refe/function_source/rb/f/at/exit +1 -1
- data/data/refe/function_source/rb/f/autoload/- +1 -1
- data/data/refe/function_source/rb/f/autoload/p +1 -1
- data/data/refe/function_source/rb/f/backquote +3 -2
- data/data/refe/function_source/rb/f/binding +1 -1
- data/data/refe/function_source/rb/f/block/given/p +1 -1
- data/data/refe/function_source/rb/f/caller +1 -1
- data/data/refe/function_source/rb/f/catch +1 -1
- data/data/refe/function_source/rb/f/eval +1 -1
- data/data/refe/function_source/rb/f/exit/- +1 -1
- data/data/refe/function_source/rb/f/exit/bang +1 -1
- data/data/refe/function_source/rb/f/float +1 -1
- data/data/refe/function_source/rb/f/fork +1 -1
- data/data/refe/function_source/rb/f/getc +1 -1
- data/data/refe/function_source/rb/f/gets +1 -1
- data/data/refe/function_source/rb/f/global/variables +1 -1
- data/data/refe/function_source/rb/f/integer +1 -1
- data/data/refe/function_source/rb/f/lambda +1 -1
- data/data/refe/function_source/rb/f/load +1 -1
- data/data/refe/function_source/rb/f/local/variables +1 -1
- data/data/refe/function_source/rb/f/loop +1 -1
- data/data/refe/function_source/rb/f/open +1 -1
- data/data/refe/function_source/rb/f/p +1 -1
- data/data/refe/function_source/rb/f/print +1 -1
- data/data/refe/function_source/rb/f/printf +1 -1
- data/data/refe/function_source/rb/f/putc +1 -1
- data/data/refe/function_source/rb/f/puts +1 -1
- data/data/refe/function_source/rb/f/raise +1 -1
- data/data/refe/function_source/rb/f/readline +1 -1
- data/data/refe/function_source/rb/f/readlines +1 -1
- data/data/refe/function_source/rb/f/require +1 -1
- data/data/refe/function_source/rb/f/select +1 -1
- data/data/refe/function_source/rb/f/send +1 -1
- data/data/refe/function_source/rb/f/sleep +1 -1
- data/data/refe/function_source/rb/f/sprintf +7 -2
- data/data/refe/function_source/rb/f/string +1 -1
- data/data/refe/function_source/rb/f/syscall +1 -1
- data/data/refe/function_source/rb/f/system +1 -1
- data/data/refe/function_source/rb/f/test +8 -8
- data/data/refe/function_source/rb/f/throw +1 -1
- data/data/refe/function_source/rb/f/trace/var +1 -1
- data/data/refe/function_source/rb/f/untrace/var +1 -1
- data/data/refe/function_source/rb/false +1 -1
- data/data/refe/function_source/rb/fdopen +1 -1
- data/data/refe/function_source/rb/feature/p +1 -1
- data/data/refe/function_source/rb/file/atime +1 -1
- data/data/refe/function_source/rb/file/chmod +1 -1
- data/data/refe/function_source/rb/file/chown +1 -1
- data/data/refe/function_source/rb/file/const +1 -1
- data/data/refe/function_source/rb/file/ctime +1 -1
- data/data/refe/function_source/rb/file/expand/path +1 -1
- data/data/refe/function_source/rb/file/flock +7 -7
- data/data/refe/function_source/rb/file/ftype +1 -1
- data/data/refe/function_source/rb/file/initialize +1 -1
- data/data/refe/function_source/rb/file/join +2 -2
- data/data/refe/function_source/rb/file/lstat +1 -1
- data/data/refe/function_source/rb/file/mtime +1 -1
- data/data/refe/function_source/rb/file/open/- +1 -1
- data/data/refe/function_source/rb/file/open/internal +1 -1
- data/data/refe/function_source/rb/file/path +1 -1
- data/data/refe/function_source/rb/file/s/atime +1 -1
- data/data/refe/function_source/rb/file/s/basename +22 -3
- data/data/refe/function_source/rb/file/s/chmod +1 -1
- data/data/refe/function_source/rb/file/s/chown +1 -1
- data/data/refe/function_source/rb/file/s/ctime +1 -1
- data/data/refe/function_source/rb/file/s/dirname +11 -4
- data/data/refe/function_source/rb/file/s/expand/path +1 -1
- data/data/refe/function_source/rb/file/s/extname +1 -1
- data/data/refe/function_source/rb/file/s/ftype +1 -1
- data/data/refe/function_source/rb/file/s/join +1 -1
- data/data/refe/function_source/rb/file/s/lchmod +1 -1
- data/data/refe/function_source/rb/file/s/lchown +1 -1
- data/data/refe/function_source/rb/file/s/link +6 -1
- data/data/refe/function_source/rb/file/s/lstat +1 -1
- data/data/refe/function_source/rb/file/s/mtime +1 -1
- data/data/refe/function_source/rb/file/s/readlink +6 -2
- data/data/refe/function_source/rb/file/s/rename +1 -1
- data/data/refe/function_source/rb/file/s/size +1 -1
- data/data/refe/function_source/rb/file/s/split +1 -1
- data/data/refe/function_source/rb/file/s/stat +1 -1
- data/data/refe/function_source/rb/file/s/symlink +1 -1
- data/data/refe/function_source/rb/file/s/truncate +1 -1
- data/data/refe/function_source/rb/file/s/umask +1 -1
- data/data/refe/function_source/rb/file/s/unlink +1 -1
- data/data/refe/function_source/rb/file/s/utime +1 -1
- data/data/refe/function_source/rb/file/sysopen/- +1 -1
- data/data/refe/function_source/rb/file/sysopen/internal +1 -1
- data/data/refe/function_source/rb/file/truncate +1 -1
- data/data/refe/function_source/rb/find/file/- +1 -1
- data/data/refe/function_source/rb/find/file/ext +1 -1
- data/data/refe/function_source/rb/fix/induced/from +1 -1
- data/data/refe/function_source/rb/fix2int +1 -1
- data/data/refe/function_source/rb/fix2str +1 -1
- data/data/refe/function_source/rb/fix2uint +1 -1
- data/data/refe/function_source/rb/flo/induced/from +1 -1
- data/data/refe/function_source/rb/float/new +1 -1
- data/data/refe/function_source/rb/fopen +1 -1
- data/data/refe/function_source/rb/frame/last/func +1 -1
- data/data/refe/function_source/rb/free/generic/ivar +1 -1
- data/data/refe/function_source/rb/funcall/- +1 -1
- data/data/refe/function_source/rb/funcall/rescue +1 -1
- data/data/refe/function_source/rb/funcall2 +1 -1
- data/data/refe/function_source/rb/funcall3 +1 -1
- data/data/refe/function_source/rb/gc/- +1 -1
- data/data/refe/function_source/rb/gc/call/finalizer/at/exit +1 -1
- data/data/refe/function_source/rb/gc/copy/finalizer +1 -1
- data/data/refe/function_source/rb/gc/finalize/deferred +1 -1
- data/data/refe/function_source/rb/gc/mark/frame +1 -1
- data/data/refe/function_source/rb/gc/mark/global/tbl +3 -1
- data/data/refe/function_source/rb/gc/mark/parser +7 -1
- data/data/refe/function_source/rb/gc/mark/threads +1 -1
- data/data/refe/function_source/rb/gc/start +1 -1
- data/data/refe/function_source/rb/generic/ivar/table +1 -1
- data/data/refe/function_source/rb/get/kcode +1 -1
- data/data/refe/function_source/rb/getc +1 -1
- data/data/refe/function_source/rb/gets +1 -1
- data/data/refe/function_source/rb/gv/get +1 -1
- data/data/refe/function_source/rb/gv/set +1 -1
- data/data/refe/function_source/rb/gvar/defined +1 -1
- data/data/refe/function_source/rb/gvar/get +1 -1
- data/data/refe/function_source/rb/gvar/set +1 -1
- data/data/refe/function_source/rb/id/attrset +1 -1
- data/data/refe/function_source/rb/id2name +1 -1
- data/data/refe/function_source/rb/include/module +1 -1
- data/data/refe/function_source/rb/inspect +1 -1
- data/data/refe/function_source/rb/inspecting/p +1 -1
- data/data/refe/function_source/rb/int/induced/from +1 -1
- data/data/refe/function_source/rb/intern +8 -6
- data/data/refe/function_source/rb/interrupt +1 -1
- data/data/refe/function_source/rb/io/addstr +1 -1
- data/data/refe/function_source/rb/io/binmode +1 -1
- data/data/refe/function_source/rb/io/check/closed +1 -1
- data/data/refe/function_source/rb/io/check/initialized +1 -1
- data/data/refe/function_source/rb/io/check/io +1 -1
- data/data/refe/function_source/rb/io/check/readable +1 -1
- data/data/refe/function_source/rb/io/check/writable +1 -1
- data/data/refe/function_source/rb/io/close/- +1 -1
- data/data/refe/function_source/rb/io/close/m +1 -1
- data/data/refe/function_source/rb/io/close/read +1 -1
- data/data/refe/function_source/rb/io/close/write +1 -1
- data/data/refe/function_source/rb/io/closed +1 -1
- data/data/refe/function_source/rb/io/ctl +1 -1
- data/data/refe/function_source/rb/io/each/byte +1 -1
- data/data/refe/function_source/rb/io/each/line +1 -1
- data/data/refe/function_source/rb/io/eof +1 -1
- data/data/refe/function_source/rb/io/fcntl +1 -1
- data/data/refe/function_source/rb/io/fileno +1 -1
- data/data/refe/function_source/rb/io/flags/mode +1 -1
- data/data/refe/function_source/rb/io/flush +1 -1
- data/data/refe/function_source/rb/io/fptr/cleanup +1 -1
- data/data/refe/function_source/rb/io/fptr/finalize +1 -1
- data/data/refe/function_source/rb/io/fread +1 -1
- data/data/refe/function_source/rb/io/fsync +1 -1
- data/data/refe/function_source/rb/io/fwrite +1 -1
- data/data/refe/function_source/rb/io/get/io +1 -1
- data/data/refe/function_source/rb/io/getc +1 -1
- data/data/refe/function_source/rb/io/getline/- +1 -1
- data/data/refe/function_source/rb/io/getline/fast +1 -1
- data/data/refe/function_source/rb/io/gets/- +1 -1
- data/data/refe/function_source/rb/io/gets/m +1 -1
- data/data/refe/function_source/rb/io/init/copy +1 -1
- data/data/refe/function_source/rb/io/initialize +1 -1
- data/data/refe/function_source/rb/io/inspect +1 -1
- data/data/refe/function_source/rb/io/ioctl +1 -1
- data/data/refe/function_source/rb/io/isatty +1 -1
- data/data/refe/function_source/rb/io/lineno +1 -1
- data/data/refe/function_source/rb/io/mode/flags +1 -1
- data/data/refe/function_source/rb/io/mode/modenum +1 -1
- data/data/refe/function_source/rb/io/mode/string +1 -1
- data/data/refe/function_source/rb/io/modenum/flags +1 -1
- data/data/refe/function_source/rb/io/modenum/mode +1 -1
- data/data/refe/function_source/rb/io/open +1 -1
- data/data/refe/function_source/rb/io/pid +1 -1
- data/data/refe/function_source/rb/io/print +1 -1
- data/data/refe/function_source/rb/io/printf +1 -1
- data/data/refe/function_source/rb/io/putc +1 -1
- data/data/refe/function_source/rb/io/puts +1 -1
- data/data/refe/function_source/rb/io/readchar +1 -1
- data/data/refe/function_source/rb/io/readline +1 -1
- data/data/refe/function_source/rb/io/readlines +1 -1
- data/data/refe/function_source/rb/io/reopen +1 -1
- data/data/refe/function_source/rb/io/rewind +1 -1
- data/data/refe/function_source/rb/io/s/for/fd +1 -1
- data/data/refe/function_source/rb/io/s/foreach +1 -1
- data/data/refe/function_source/rb/io/s/new +1 -1
- data/data/refe/function_source/rb/io/s/open +1 -1
- data/data/refe/function_source/rb/io/s/pipe +1 -1
- data/data/refe/function_source/rb/io/s/popen +1 -1
- data/data/refe/function_source/rb/io/s/read +1 -1
- data/data/refe/function_source/rb/io/s/readlines +1 -1
- data/data/refe/function_source/rb/io/s/sysopen +1 -1
- data/data/refe/function_source/rb/io/seek/- +1 -1
- data/data/refe/function_source/rb/io/seek/m +1 -1
- data/data/refe/function_source/rb/io/set/lineno +1 -1
- data/data/refe/function_source/rb/io/set/pos +1 -1
- data/data/refe/function_source/rb/io/set/sync +1 -1
- data/data/refe/function_source/rb/io/stat +1 -1
- data/data/refe/function_source/rb/io/sync +1 -1
- data/data/refe/function_source/rb/io/synchronized +1 -1
- data/data/refe/function_source/rb/io/sysread +1 -1
- data/data/refe/function_source/rb/io/sysseek +1 -1
- data/data/refe/function_source/rb/io/syswrite +1 -1
- data/data/refe/function_source/rb/io/taint/check +1 -1
- data/data/refe/function_source/rb/io/tell +1 -1
- data/data/refe/function_source/rb/io/to/io +1 -1
- data/data/refe/function_source/rb/io/unbuffered +1 -1
- data/data/refe/function_source/rb/io/ungetc +1 -1
- data/data/refe/function_source/rb/io/wait/readable +1 -1
- data/data/refe/function_source/rb/io/wait/writable +1 -1
- data/data/refe/function_source/rb/io/write +1 -1
- data/data/refe/function_source/rb/is/class/id +1 -1
- data/data/refe/function_source/rb/is/const/id +1 -1
- data/data/refe/function_source/rb/is/instance/id +1 -1
- data/data/refe/function_source/rb/is/junk/id +1 -1
- data/data/refe/function_source/rb/is/local/id +1 -1
- data/data/refe/function_source/rb/iter/break +1 -1
- data/data/refe/function_source/rb/iterate +1 -1
- data/data/refe/function_source/rb/iterator/p +1 -1
- data/data/refe/function_source/rb/iv/get +1 -1
- data/data/refe/function_source/rb/iv/set +1 -1
- data/data/refe/function_source/rb/ivar/defined +1 -1
- data/data/refe/function_source/rb/ivar/get +1 -1
- data/data/refe/function_source/rb/ivar/set +1 -1
- data/data/refe/function_source/rb/jump/tag +1 -1
- data/data/refe/function_source/rb/kcode +1 -1
- data/data/refe/function_source/rb/lastline/get +1 -1
- data/data/refe/function_source/rb/lastline/set +1 -1
- data/data/refe/function_source/rb/load/- +1 -1
- data/data/refe/function_source/rb/load/protect +1 -1
- data/data/refe/function_source/rb/longjmp +1 -1
- data/data/refe/function_source/rb/make/exception +1 -1
- data/data/refe/function_source/rb/make/metaclass +1 -1
- data/data/refe/function_source/rb/mark/end/proc +1 -1
- data/data/refe/function_source/rb/mark/generic/ivar/- +1 -1
- data/data/refe/function_source/rb/mark/generic/ivar/tbl +1 -1
- data/data/refe/function_source/rb/match/busy +1 -1
- data/data/refe/function_source/rb/memsearch +1 -1
- data/data/refe/function_source/rb/method/missing +1 -1
- data/data/refe/function_source/rb/mod/ancestors +1 -1
- data/data/refe/function_source/rb/mod/append/features +1 -1
- data/data/refe/function_source/rb/mod/attr/- +1 -1
- data/data/refe/function_source/rb/mod/attr/accessor +1 -1
- data/data/refe/function_source/rb/mod/attr/reader +1 -1
- data/data/refe/function_source/rb/mod/attr/writer +1 -1
- data/data/refe/function_source/rb/mod/autoload/- +1 -1
- data/data/refe/function_source/rb/mod/autoload/p +1 -1
- data/data/refe/function_source/rb/mod/class/variables +1 -1
- data/data/refe/function_source/rb/mod/cmp +1 -1
- data/data/refe/function_source/rb/mod/const/at +1 -1
- data/data/refe/function_source/rb/mod/const/defined +1 -1
- data/data/refe/function_source/rb/mod/const/get +1 -1
- data/data/refe/function_source/rb/mod/const/missing +1 -1
- data/data/refe/function_source/rb/mod/const/of +1 -1
- data/data/refe/function_source/rb/mod/const/set +1 -1
- data/data/refe/function_source/rb/mod/constants +1 -1
- data/data/refe/function_source/rb/mod/cvar/get +1 -1
- data/data/refe/function_source/rb/mod/cvar/set +1 -1
- data/data/refe/function_source/rb/mod/define/method +2 -1
- data/data/refe/function_source/rb/mod/eqq +1 -1
- data/data/refe/function_source/rb/mod/extend/object +1 -1
- data/data/refe/function_source/rb/mod/freeze +1 -1
- data/data/refe/function_source/rb/mod/ge +1 -1
- data/data/refe/function_source/rb/mod/gt +1 -1
- data/data/refe/function_source/rb/mod/include/- +1 -1
- data/data/refe/function_source/rb/mod/include/p +1 -1
- data/data/refe/function_source/rb/mod/included/modules +1 -1
- data/data/refe/function_source/rb/mod/init/copy +1 -1
- data/data/refe/function_source/rb/mod/initialize +1 -1
- data/data/refe/function_source/rb/mod/lt +1 -1
- data/data/refe/function_source/rb/mod/method/- +1 -1
- data/data/refe/function_source/rb/mod/method/defined +1 -1
- data/data/refe/function_source/rb/mod/modfunc +1 -1
- data/data/refe/function_source/rb/mod/module/eval +1 -1
- data/data/refe/function_source/rb/mod/private/- +1 -1
- data/data/refe/function_source/rb/mod/private/method/- +1 -1
- data/data/refe/function_source/rb/mod/private/method/defined +1 -1
- data/data/refe/function_source/rb/mod/protected/- +1 -1
- data/data/refe/function_source/rb/mod/protected/method/defined +1 -1
- data/data/refe/function_source/rb/mod/public/- +1 -1
- data/data/refe/function_source/rb/mod/public/method/- +1 -1
- data/data/refe/function_source/rb/mod/public/method/defined +1 -1
- data/data/refe/function_source/rb/mod/remove/const +1 -1
- data/data/refe/function_source/rb/mod/remove/cvar +1 -1
- data/data/refe/function_source/rb/module/new +1 -1
- data/data/refe/function_source/rb/module/s/alloc +1 -1
- data/data/refe/function_source/rb/need/block +1 -1
- data/data/refe/function_source/rb/node/newnode +1 -1
- data/data/refe/function_source/rb/num2dbl +1 -1
- data/data/refe/function_source/rb/num2fix +1 -1
- data/data/refe/function_source/rb/num2int +1 -1
- data/data/refe/function_source/rb/num2ll +1 -1
- data/data/refe/function_source/rb/num2long +1 -1
- data/data/refe/function_source/rb/num2uint +1 -1
- data/data/refe/function_source/rb/num2ull +1 -1
- data/data/refe/function_source/rb/num2ulong +1 -1
- data/data/refe/function_source/rb/obj/alloc +1 -1
- data/data/refe/function_source/rb/obj/call/init +1 -1
- data/data/refe/function_source/rb/obj/display +1 -1
- data/data/refe/function_source/rb/obj/dummy +1 -1
- data/data/refe/function_source/rb/obj/extend +1 -1
- data/data/refe/function_source/rb/obj/freeze +1 -1
- data/data/refe/function_source/rb/obj/frozen/p +1 -1
- data/data/refe/function_source/rb/obj/infect +1 -1
- data/data/refe/function_source/rb/obj/init/copy +1 -1
- data/data/refe/function_source/rb/obj/inspect +1 -1
- data/data/refe/function_source/rb/obj/instance/eval +1 -1
- data/data/refe/function_source/rb/obj/instance/variables +1 -1
- data/data/refe/function_source/rb/obj/is/instance/of +1 -1
- data/data/refe/function_source/rb/obj/is/kind/of +1 -1
- data/data/refe/function_source/rb/obj/is/method +1 -1
- data/data/refe/function_source/rb/obj/ivar/get +1 -1
- data/data/refe/function_source/rb/obj/ivar/set +1 -1
- data/data/refe/function_source/rb/obj/method +1 -1
- data/data/refe/function_source/rb/obj/methods +1 -1
- data/data/refe/function_source/rb/obj/pattern/match +1 -1
- data/data/refe/function_source/rb/obj/private/methods +1 -1
- data/data/refe/function_source/rb/obj/protected/methods +1 -1
- data/data/refe/function_source/rb/obj/public/methods +1 -1
- data/data/refe/function_source/rb/obj/remove/instance/variable +1 -1
- data/data/refe/function_source/rb/obj/respond/to +15 -12
- data/data/refe/function_source/rb/obj/singleton/methods +1 -1
- data/data/refe/function_source/rb/obj/taint +1 -1
- data/data/refe/function_source/rb/obj/tainted +1 -1
- data/data/refe/function_source/rb/obj/untaint +1 -1
- data/data/refe/function_source/rb/open/file +1 -1
- data/data/refe/function_source/rb/p +1 -1
- data/data/refe/function_source/rb/parser/append/print +1 -1
- data/data/refe/function_source/rb/parser/calloc +11 -0
- data/data/refe/function_source/rb/parser/free +17 -0
- data/data/refe/function_source/rb/parser/malloc +11 -0
- data/data/refe/function_source/rb/parser/realloc +22 -0
- data/data/refe/function_source/rb/parser/while/loop +1 -1
- data/data/refe/function_source/rb/path/check +1 -1
- data/data/refe/function_source/rb/path/end +1 -1
- data/data/refe/function_source/rb/path/last/separator +1 -1
- data/data/refe/function_source/rb/path/next +1 -1
- data/data/refe/function_source/rb/path/skip/prefix +4 -2
- data/data/refe/function_source/rb/proc/new +1 -1
- data/data/refe/function_source/rb/proc/times +1 -1
- data/data/refe/function_source/rb/protect/- +1 -1
- data/data/refe/function_source/rb/protect/inspect +1 -1
- data/data/refe/function_source/rb/provide/- +1 -1
- data/data/refe/function_source/rb/provide/feature +1 -1
- data/data/refe/function_source/rb/provided +1 -1
- data/data/refe/function_source/rb/raise/jump +1 -1
- data/data/refe/function_source/rb/read/check +1 -1
- data/data/refe/function_source/rb/read/pending +1 -1
- data/data/refe/function_source/rb/reg/adjust/startpos +1 -1
- data/data/refe/function_source/rb/reg/cur/kcode +1 -1
- data/data/refe/function_source/rb/reg/eqq +1 -1
- data/data/refe/function_source/rb/reg/equal +1 -1
- data/data/refe/function_source/rb/reg/get/kcode +1 -1
- data/data/refe/function_source/rb/reg/hash +1 -1
- data/data/refe/function_source/rb/reg/init/copy +1 -1
- data/data/refe/function_source/rb/reg/initialize/- +1 -1
- data/data/refe/function_source/rb/reg/initialize/m +1 -1
- data/data/refe/function_source/rb/reg/last/match +1 -1
- data/data/refe/function_source/rb/reg/match/- +1 -1
- data/data/refe/function_source/rb/reg/match/last +1 -1
- data/data/refe/function_source/rb/reg/match/m +1 -1
- data/data/refe/function_source/rb/reg/match/post +1 -1
- data/data/refe/function_source/rb/reg/match/pre +1 -1
- data/data/refe/function_source/rb/reg/match2 +1 -1
- data/data/refe/function_source/rb/reg/new +1 -1
- data/data/refe/function_source/rb/reg/nth/defined +1 -1
- data/data/refe/function_source/rb/reg/nth/match +1 -1
- data/data/refe/function_source/rb/reg/options/- +1 -1
- data/data/refe/function_source/rb/reg/prepare/re +1 -1
- data/data/refe/function_source/rb/reg/quote +1 -1
- data/data/refe/function_source/rb/reg/regcomp +2 -1
- data/data/refe/function_source/rb/reg/regsub +1 -1
- data/data/refe/function_source/rb/reg/s/alloc +1 -1
- data/data/refe/function_source/rb/reg/s/last/match +1 -1
- data/data/refe/function_source/rb/reg/s/quote +1 -1
- data/data/refe/function_source/rb/reg/s/union +1 -1
- data/data/refe/function_source/rb/reg/search +1 -1
- data/data/refe/function_source/rb/require/- +1 -1
- data/data/refe/function_source/rb/require/safe +2 -3
- data/data/refe/function_source/rb/rescue +1 -1
- data/data/refe/function_source/rb/rescue2 +1 -1
- data/data/refe/function_source/rb/respond/to +2 -10
- data/data/refe/function_source/rb/scan/args +1 -1
- data/data/refe/function_source/rb/set/end/proc +1 -1
- data/data/refe/function_source/rb/set/kcode +1 -1
- data/data/refe/function_source/rb/set/safe/level +1 -1
- data/data/refe/function_source/rb/setegid/core +1 -1
- data/data/refe/function_source/rb/seteuid/core +1 -1
- data/data/refe/function_source/rb/singleton/class/- +1 -1
- data/data/refe/function_source/rb/singleton/class/attached +1 -1
- data/data/refe/function_source/rb/singleton/class/clone +1 -1
- data/data/refe/function_source/rb/stat/- +1 -1
- data/data/refe/function_source/rb/stat/-r +1 -1
- data/data/refe/function_source/rb/stat/-s +1 -1
- data/data/refe/function_source/rb/stat/-w +1 -1
- data/data/refe/function_source/rb/stat/-x +1 -1
- data/data/refe/function_source/rb/stat/atime +1 -1
- data/data/refe/function_source/rb/stat/b +1 -1
- data/data/refe/function_source/rb/stat/blksize +1 -1
- data/data/refe/function_source/rb/stat/blocks +1 -1
- data/data/refe/function_source/rb/stat/c +1 -1
- data/data/refe/function_source/rb/stat/cmp +1 -1
- data/data/refe/function_source/rb/stat/ctime +1 -1
- data/data/refe/function_source/rb/stat/d +1 -1
- data/data/refe/function_source/rb/stat/dev/- +1 -1
- data/data/refe/function_source/rb/stat/dev/major +1 -1
- data/data/refe/function_source/rb/stat/dev/minor +1 -1
- data/data/refe/function_source/rb/stat/f +1 -1
- data/data/refe/function_source/rb/stat/ftype +1 -1
- data/data/refe/function_source/rb/stat/gid +1 -1
- data/data/refe/function_source/rb/stat/grpowned +1 -1
- data/data/refe/function_source/rb/stat/init/- +1 -1
- data/data/refe/function_source/rb/stat/init/copy +1 -1
- data/data/refe/function_source/rb/stat/ino +1 -1
- data/data/refe/function_source/rb/stat/inspect +17 -17
- data/data/refe/function_source/rb/stat/l +1 -1
- data/data/refe/function_source/rb/stat/mode +1 -1
- data/data/refe/function_source/rb/stat/mtime +1 -1
- data/data/refe/function_source/rb/stat/nlink +1 -1
- data/data/refe/function_source/rb/stat/owned +1 -1
- data/data/refe/function_source/rb/stat/p +1 -1
- data/data/refe/function_source/rb/stat/r +1 -1
- data/data/refe/function_source/rb/stat/rdev/- +1 -1
- data/data/refe/function_source/rb/stat/rdev/major +1 -1
- data/data/refe/function_source/rb/stat/rdev/minor +1 -1
- data/data/refe/function_source/rb/stat/rowned +1 -1
- data/data/refe/function_source/rb/stat/s/- +1 -1
- data/data/refe/function_source/rb/stat/s/alloc +1 -1
- data/data/refe/function_source/rb/stat/sgid +1 -1
- data/data/refe/function_source/rb/stat/size +1 -1
- data/data/refe/function_source/rb/stat/sticky +1 -1
- data/data/refe/function_source/rb/stat/suid +1 -1
- data/data/refe/function_source/rb/stat/uid +1 -1
- data/data/refe/function_source/rb/stat/w +1 -1
- data/data/refe/function_source/rb/stat/x +1 -1
- data/data/refe/function_source/rb/stat/z +1 -1
- data/data/refe/function_source/rb/str/to/dbl +1 -1
- data/data/refe/function_source/rb/str2cstr +1 -1
- data/data/refe/function_source/rb/strftime +5 -6
- data/data/refe/function_source/rb/sym/all/symbols +1 -1
- data/data/refe/function_source/rb/symname/p +74 -0
- data/data/refe/function_source/rb/sysopen +1 -1
- data/data/refe/function_source/rb/syswait +1 -1
- data/data/refe/function_source/rb/thread/abort/exc/- +1 -1
- data/data/refe/function_source/rb/thread/abort/exc/set +1 -1
- data/data/refe/function_source/rb/thread/alive/p +1 -1
- data/data/refe/function_source/rb/thread/alloc +1 -1
- data/data/refe/function_source/rb/thread/alone +1 -1
- data/data/refe/function_source/rb/thread/aref +1 -1
- data/data/refe/function_source/rb/thread/aset +1 -1
- data/data/refe/function_source/rb/thread/atfork +1 -1
- data/data/refe/function_source/rb/thread/check +1 -1
- data/data/refe/function_source/rb/thread/cleanup +1 -1
- data/data/refe/function_source/rb/thread/create +1 -1
- data/data/refe/function_source/rb/thread/critical/get +1 -1
- data/data/refe/function_source/rb/thread/critical/set +1 -1
- data/data/refe/function_source/rb/thread/current +1 -1
- data/data/refe/function_source/rb/thread/dead +1 -1
- data/data/refe/function_source/rb/thread/deadlock +1 -1
- data/data/refe/function_source/rb/thread/die +1 -1
- data/data/refe/function_source/rb/thread/exit +1 -1
- data/data/refe/function_source/rb/thread/fd/close +1 -1
- data/data/refe/function_source/rb/thread/fd/writable +1 -1
- data/data/refe/function_source/rb/thread/flock +7 -7
- data/data/refe/function_source/rb/thread/group +1 -1
- data/data/refe/function_source/rb/thread/initialize +1 -1
- data/data/refe/function_source/rb/thread/inspect +1 -1
- data/data/refe/function_source/rb/thread/interrupt +1 -1
- data/data/refe/function_source/rb/thread/join/- +1 -1
- data/data/refe/function_source/rb/thread/join/m +1 -1
- data/data/refe/function_source/rb/thread/key/p +1 -1
- data/data/refe/function_source/rb/thread/keys +1 -1
- data/data/refe/function_source/rb/thread/kill +1 -1
- data/data/refe/function_source/rb/thread/list +1 -1
- data/data/refe/function_source/rb/thread/local/aref +1 -1
- data/data/refe/function_source/rb/thread/local/aset +1 -1
- data/data/refe/function_source/rb/thread/main/- +1 -1
- data/data/refe/function_source/rb/thread/main/jump +1 -1
- data/data/refe/function_source/rb/thread/pass +1 -1
- data/data/refe/function_source/rb/thread/polling +1 -1
- data/data/refe/function_source/rb/thread/priority/- +1 -1
- data/data/refe/function_source/rb/thread/priority/set +1 -1
- data/data/refe/function_source/rb/thread/raise/- +1 -1
- data/data/refe/function_source/rb/thread/raise/m +1 -1
- data/data/refe/function_source/rb/thread/ready +1 -1
- data/data/refe/function_source/rb/thread/remove +1 -1
- data/data/refe/function_source/rb/thread/restore/context +1 -1
- data/data/refe/function_source/rb/thread/run +1 -1
- data/data/refe/function_source/rb/thread/s/abort/exc/- +1 -1
- data/data/refe/function_source/rb/thread/s/abort/exc/set +1 -1
- data/data/refe/function_source/rb/thread/s/kill +1 -1
- data/data/refe/function_source/rb/thread/s/new +1 -1
- data/data/refe/function_source/rb/thread/safe/level +1 -1
- data/data/refe/function_source/rb/thread/save/context +1 -1
- data/data/refe/function_source/rb/thread/schedule +1 -1
- data/data/refe/function_source/rb/thread/select +1 -1
- data/data/refe/function_source/rb/thread/signal/exit +1 -1
- data/data/refe/function_source/rb/thread/signal/raise +1 -1
- data/data/refe/function_source/rb/thread/sleep/- +1 -1
- data/data/refe/function_source/rb/thread/sleep/forever +1 -1
- data/data/refe/function_source/rb/thread/start/- +1 -1
- data/data/refe/function_source/rb/thread/start/0 +1 -1
- data/data/refe/function_source/rb/thread/start/timer +1 -1
- data/data/refe/function_source/rb/thread/status +1 -1
- data/data/refe/function_source/rb/thread/stop/- +1 -1
- data/data/refe/function_source/rb/thread/stop/p +1 -1
- data/data/refe/function_source/rb/thread/stop/timer +1 -1
- data/data/refe/function_source/rb/thread/switch +1 -1
- data/data/refe/function_source/rb/thread/trap/eval +1 -1
- data/data/refe/function_source/rb/thread/value +1 -1
- data/data/refe/function_source/rb/thread/wait/fd +1 -1
- data/data/refe/function_source/rb/thread/wait/for +1 -1
- data/data/refe/function_source/rb/thread/wait/other/threads +1 -1
- data/data/refe/function_source/rb/thread/wakeup +1 -1
- data/data/refe/function_source/rb/thread/yield +1 -1
- data/data/refe/function_source/rb/throw +1 -1
- data/data/refe/function_source/rb/to/id +1 -1
- data/data/refe/function_source/rb/to/int +1 -1
- data/data/refe/function_source/rb/to/integer +1 -1
- data/data/refe/function_source/rb/trace/eval +1 -1
- data/data/refe/function_source/rb/trap/eval +1 -1
- data/data/refe/function_source/rb/true +1 -1
- data/data/refe/function_source/rb/undef/method +1 -1
- data/data/refe/function_source/rb/values/at +1 -1
- data/data/refe/function_source/rb/with/disable/interrupt +1 -1
- data/data/refe/function_source/rb/write/error +1 -1
- data/data/refe/function_source/rb/write/error2 +1 -1
- data/data/refe/function_source/rb/yield/- +1 -1
- data/data/refe/function_source/rb/yield/0 +1 -1
- data/data/refe/function_source/rb/yield/splat +1 -1
- data/data/refe/function_source/rb/yield/values +1 -1
- data/data/refe/function_source/re/adjust/startpos +1 -1
- data/data/refe/function_source/re/compile/fastmap +1 -1
- data/data/refe/function_source/re/compile/pattern +1 -0
- data/data/refe/function_source/re/copy/registers +1 -1
- data/data/refe/function_source/re/free/pattern +1 -1
- data/data/refe/function_source/re/free/registers +1 -1
- data/data/refe/function_source/re/match/- +1 -1
- data/data/refe/function_source/re/match/exec +1 -1
- data/data/refe/function_source/re/mbcinit +1 -1
- data/data/refe/function_source/re/search +1 -1
- data/data/refe/function_source/read/all +1 -1
- data/data/refe/function_source/read/buffered/data +5 -3
- data/data/refe/function_source/read/escape +1 -1
- data/data/refe/function_source/regx/options +1 -1
- data/data/refe/function_source/rehash +1 -1
- data/data/refe/function_source/remain/size +1 -1
- data/data/refe/function_source/remove/begin +1 -1
- data/data/refe/function_source/remove/trace +1 -1
- data/data/refe/function_source/ret/args +1 -1
- data/data/refe/function_source/return/jump +1 -1
- data/data/refe/function_source/rm/final +1 -1
- data/data/refe/function_source/rmext +1 -1
- data/data/refe/function_source/rscheck +1 -1
- data/data/refe/function_source/ruby/dup +1 -1
- data/data/refe/function_source/ruby/parser/stack/on/heap +2 -2
- data/data/refe/function_source/ruby/prog/init +1 -1
- data/data/refe/function_source/ruby/set/stack/size +1 -1
- data/data/refe/function_source/run/final +1 -1
- data/data/refe/function_source/run/single/final +1 -1
- data/data/refe/function_source/run/trap/eval +1 -1
- data/data/refe/function_source/safe/getter +1 -1
- data/data/refe/function_source/safe/setter +1 -1
- data/data/refe/function_source/scan/once +1 -1
- data/data/refe/function_source/scope/dup +1 -1
- data/data/refe/function_source/search/required +1 -1
- data/data/refe/function_source/secure/visibility +1 -1
- data/data/refe/function_source/set/method/visibility +1 -1
- data/data/refe/function_source/set/trace/func +1 -0
- data/data/refe/function_source/sjis/startpos +1 -1
- data/data/refe/function_source/skiproot +1 -1
- data/data/refe/function_source/slow/match +1 -1
- data/data/refe/function_source/slow/search +1 -1
- data/data/refe/function_source/sort/1 +1 -1
- data/data/refe/function_source/sort/2 +1 -1
- data/data/refe/function_source/sort/internal +1 -1
- data/data/refe/function_source/sort/unlock +1 -1
- data/data/refe/function_source/special/local/set +1 -1
- data/data/refe/function_source/specific/eval +1 -1
- data/data/refe/function_source/splat/value +1 -1
- data/data/refe/function_source/st/add/direct +1 -1
- data/data/refe/function_source/st/cleanup/safe +1 -1
- data/data/refe/function_source/st/copy +1 -1
- data/data/refe/function_source/st/delete/- +1 -1
- data/data/refe/function_source/st/delete/safe +1 -1
- data/data/refe/function_source/st/foreach/- +1 -1
- data/data/refe/function_source/st/free/table +1 -1
- data/data/refe/function_source/st/init/numtable/- +1 -1
- data/data/refe/function_source/st/init/numtable/with/size +1 -1
- data/data/refe/function_source/st/init/strtable/- +1 -1
- data/data/refe/function_source/st/init/strtable/with/size +1 -1
- data/data/refe/function_source/st/init/table/- +1 -1
- data/data/refe/function_source/st/init/table/with/size +1 -1
- data/data/refe/function_source/st/insert +1 -1
- data/data/refe/function_source/st/lookup +1 -1
- data/data/refe/function_source/stack/check +1 -1
- data/data/refe/function_source/stack/extend +1 -1
- data/data/refe/function_source/stat/col +1 -1
- data/data/refe/function_source/stat/new/- +1 -1
- data/data/refe/function_source/stat/new/0 +1 -1
- data/data/refe/function_source/stdout/setter +1 -1
- data/data/refe/function_source/store/jump/- +1 -1
- data/data/refe/function_source/store/jump/n +1 -1
- data/data/refe/function_source/str/to/id +1 -1
- data/data/refe/function_source/strhash +1 -1
- data/data/refe/function_source/sv/i +1 -1
- data/data/refe/function_source/svalue/to/avalue +1 -1
- data/data/refe/function_source/svalue/to/mrhs +1 -1
- data/data/refe/function_source/swallow +1 -1
- data/data/refe/function_source/sym/inspect +2 -2
- data/data/refe/function_source/sym/to/i +1 -1
- data/data/refe/function_source/sym/to/int +1 -1
- data/data/refe/function_source/sym/to/s +1 -1
- data/data/refe/function_source/sym/to/sym +1 -1
- data/data/refe/function_source/symbols/i +1 -1
- data/data/refe/function_source/sys/fail2 +1 -1
- data/data/refe/function_source/terminate/process +1 -1
- data/data/refe/function_source/test/-r +1 -1
- data/data/refe/function_source/test/-s +1 -1
- data/data/refe/function_source/test/-w +1 -1
- data/data/refe/function_source/test/-x +1 -1
- data/data/refe/function_source/test/b +1 -1
- data/data/refe/function_source/test/c +1 -1
- data/data/refe/function_source/test/check +1 -1
- data/data/refe/function_source/test/d +1 -1
- data/data/refe/function_source/test/e +1 -1
- data/data/refe/function_source/test/f +1 -1
- data/data/refe/function_source/test/grpowned +1 -1
- data/data/refe/function_source/test/identical +48 -0
- data/data/refe/function_source/test/l +1 -1
- data/data/refe/function_source/test/owned +1 -1
- data/data/refe/function_source/test/p +1 -1
- data/data/refe/function_source/test/r +1 -1
- data/data/refe/function_source/test/rowned +1 -1
- data/data/refe/function_source/test/s +1 -1
- data/data/refe/function_source/test/sgid +1 -1
- data/data/refe/function_source/test/sticky +1 -1
- data/data/refe/function_source/test/suid +1 -1
- data/data/refe/function_source/test/w +1 -1
- data/data/refe/function_source/test/x +1 -1
- data/data/refe/function_source/test/z +1 -1
- data/data/refe/function_source/thgroup/add +1 -1
- data/data/refe/function_source/thgroup/enclose +2 -2
- data/data/refe/function_source/thgroup/enclosed/p +1 -1
- data/data/refe/function_source/thgroup/list +1 -1
- data/data/refe/function_source/thgroup/s/alloc +1 -1
- data/data/refe/function_source/thread/free +1 -1
- data/data/refe/function_source/thread/keys/i +1 -1
- data/data/refe/function_source/thread/mark +1 -1
- data/data/refe/function_source/thread/reset/raised +1 -1
- data/data/refe/function_source/thread/set/raised +1 -1
- data/data/refe/function_source/thread/status/name +1 -1
- data/data/refe/function_source/thread/timer +1 -1
- data/data/refe/function_source/time/add +1 -1
- data/data/refe/function_source/time/asctime +1 -1
- data/data/refe/function_source/time/dup +1 -1
- data/data/refe/function_source/time/get/tm +1 -1
- data/data/refe/function_source/time/getgmtime +1 -1
- data/data/refe/function_source/time/getlocaltime +1 -1
- data/data/refe/function_source/time/gmtime +1 -1
- data/data/refe/function_source/time/hour +1 -1
- data/data/refe/function_source/time/init/copy +1 -1
- data/data/refe/function_source/time/isdst +1 -1
- data/data/refe/function_source/time/localtime +1 -1
- data/data/refe/function_source/time/mday +1 -1
- data/data/refe/function_source/time/min +1 -1
- data/data/refe/function_source/time/minus +1 -1
- data/data/refe/function_source/time/mon +1 -1
- data/data/refe/function_source/time/overflow/p +1 -1
- data/data/refe/function_source/time/plus +1 -1
- data/data/refe/function_source/time/sec +1 -1
- data/data/refe/function_source/time/strftime +5 -5
- data/data/refe/function_source/time/succ +1 -1
- data/data/refe/function_source/time/to/a +1 -1
- data/data/refe/function_source/time/to/s +1 -1
- data/data/refe/function_source/time/utc/offset +1 -1
- data/data/refe/function_source/time/wday +1 -1
- data/data/refe/function_source/time/yday +1 -1
- data/data/refe/function_source/time/year +1 -1
- data/data/refe/function_source/time/zone +1 -1
- data/data/refe/function_source/timeofday +1 -1
- data/data/refe/function_source/tokadd/- +1 -1
- data/data/refe/function_source/tokadd/escape +1 -1
- data/data/refe/function_source/tokadd/string +1 -1
- data/data/refe/function_source/top/include +1 -1
- data/data/refe/function_source/top/local/init +1 -1
- data/data/refe/function_source/top/local/setup +2 -2
- data/data/refe/function_source/top/private +1 -1
- data/data/refe/function_source/top/public +1 -1
- data/data/refe/function_source/trace/en +1 -1
- data/data/refe/function_source/trace/ev +1 -1
- data/data/refe/function_source/true/and +1 -1
- data/data/refe/function_source/true/or +1 -1
- data/data/refe/function_source/true/to/s +1 -1
- data/data/refe/function_source/true/xor +1 -1
- data/data/refe/function_source/umethod/bind +14 -4
- data/data/refe/function_source/undefine/final +1 -1
- data/data/refe/function_source/uninitialized/constant +1 -1
- data/data/refe/function_source/unknown/node +10 -2
- data/data/refe/function_source/unlink/internal +4 -2
- data/data/refe/function_source/utf8/startpos +1 -1
- data/data/refe/function_source/utime/internal +4 -3
- data/data/refe/function_source/vafuncall +1 -1
- data/data/refe/function_source/value/expr0 +1 -1
- data/data/refe/function_source/vms/fileact +1 -1
- data/data/refe/function_source/vms/fisexh +1 -1
- data/data/refe/function_source/void/expr0 +1 -1
- data/data/refe/function_source/void/stmts +1 -1
- data/data/refe/function_source/w32/io/info +32 -0
- data/data/refe/function_source/warn/unless/e/option +1 -1
- data/data/refe/function_source/warning/unless/e/option +1 -1
- data/data/refe/function_source/whole/match/p +1 -1
- data/data/refe/function_source/win32/get/exception/list +1 -1
- data/data/refe/function_source/win32/set/exception/list +1 -1
- data/data/refe/function_source/wsplit/p +1 -1
- data/data/refe/function_source/yield/under/- +1 -1
- data/data/refe/function_source/yield/under/i +1 -1
- data/data/refe/function_source/yycompile +1 -1
- data/data/refe/function_source/yyerror +1 -1
- data/data/refe/function_source/yylex +17 -3
- data/data/refe/function_source/yyparse +2905 -0
- data/data/refe/function_source/yystpcpy +1 -1
- data/data/refe/function_source/yystrlen +1 -1
- data/data/refe/function_source_comp +12 -4
- data/data/refe/method_document/-cipher%2e/new +4 -2
- data/data/refe/method_document/-kernel%2e/-a-r-g-f +8 -0
- data/data/refe/method_document/-kernel%2e/-a-r-g-v +5 -0
- data/data/refe/method_document/-kernel%2e/-d-a-t-a +17 -0
- data/data/refe/method_document/-kernel%2e/-e-n-v +5 -0
- data/data/refe/method_document/-kernel%2e/-f-a-l-s-e +5 -0
- data/data/refe/method_document/-kernel%2e/-n-i-l +5 -0
- data/data/refe/method_document/-kernel%2e/-p-l-a-t-f-o-r-m +9 -0
- data/data/refe/method_document/-kernel%2e/-r-e-l-e-a-s-e_-d-a-t-e +9 -0
- data/data/refe/method_document/-kernel%2e/-r-u-b-y_-p-l-a-t-f-o-r-m +4 -0
- data/data/refe/method_document/-kernel%2e/-r-u-b-y_-r-e-l-e-a-s-e_-d-a-t-e +4 -0
- data/data/refe/method_document/-kernel%2e/-r-u-b-y_-v-e-r-s-i-o-n +18 -0
- data/data/refe/method_document/-kernel%2e/-s-c-r-i-p-t_-l-i-n-e-s__ +29 -0
- data/data/refe/method_document/-kernel%2e/-s-t-d-e-r-r +4 -0
- data/data/refe/method_document/-kernel%2e/-s-t-d-i-n +4 -0
- data/data/refe/method_document/-kernel%2e/-s-t-d-o-u-t +4 -0
- data/data/refe/method_document/-kernel%2e/-t-o-p-l-e-v-e-l_-b-i-n-d-i-n-g +4 -0
- data/data/refe/method_document/-kernel%2e/-t-r-u-e +6 -0
- data/data/refe/method_document/-kernel%2e/-v-e-r-s-i-o-n +9 -0
- data/data/refe/method_document/-module%23/constants +1 -1
- data/data/refe/method_document/-numeric%23/ceil +97 -3
- data/data/refe/method_document/-numeric%23/div +47 -3
- data/data/refe/method_document/-numeric%23/divmod +37 -10
- data/data/refe/method_document/-numeric%23/floor +97 -3
- data/data/refe/method_document/-numeric%23/modulo +62 -6
- data/data/refe/method_document/-numeric%23/quo +44 -3
- data/data/refe/method_document/-numeric%23/remainder +51 -4
- data/data/refe/method_document/-numeric%23/round +97 -3
- data/data/refe/method_document/-numeric%23/step +16 -2
- data/data/refe/method_document/-numeric%23/truncate +97 -3
- data/data/refe/method_document/-open-s-s-l%3a%3a-cipher%3a%3a-cipher%23/decrypt +2 -0
- data/data/refe/method_document/-open-s-s-l%3a%3a-cipher%3a%3a-cipher%23/encrypt +2 -0
- data/data/refe/method_document/-string%23/sub +1 -1
- data/data/refe/method_document/-string%23/sub%21 +1 -1
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/%5b%5d +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/%5b%5d%3d +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/each +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/each_pair +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/length +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/members +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/size +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/to_a +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/values +0 -0
- data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/values_at +0 -0
- data/data/refe/method_document/man%2e/constants +132 -0
- data/data/refe/method_document/man%2e/functions +1210 -0
- data/data/refe/method_document/man%2e/hostname +14 -0
- data/data/refe/method_document/man%2e/servname +6 -0
- data/data/refe/method_document/man%2e/sockaddr +22 -0
- data/data/refe/method_document/man%2e/variables +533 -0
- data/data/refe/method_document_comp +35 -10
- data/data/refe/mf_relation/-file%2e/identical%3f +1 -0
- data/data/refe/mf_relation/-file-test%2e/identical%3f +1 -0
- data/data/refe/mf_relation/-object%23/respond_to%3f +1 -1
- data/data/refe/mf_relation_comp +2 -0
- data/lib/refe/info.rb +1 -1
- data/lib/refe/rubyrefmparser.rb +39 -7
- metadata +10453 -10410
- data/data/refe/function_source/yy/reduce/print +0 -18
- data/data/refe/function_source/yy/stack/print +0 -15
- data/data/refe/function_source/yydestruct +0 -25
- data/data/refe/function_source/yysymprint +0 -31
@@ -1,4 +1,4 @@
|
|
1
|
-
--- step(limit) {|n| ... }
|
1
|
+
--- step(limit) {|n| ... }
|
2
2
|
--- step(limit, step) {|n| ... } ruby 1.7 feature
|
3
3
|
|
4
4
|
self ����Ϥ��� step �����ʤ��� limit ��ۤ���
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
self ���֤��ޤ���
|
12
12
|
|
13
|
-
ruby 1.7 feature: Fixnum, Integer �����ư���ޤ�
|
13
|
+
ruby 1.7 feature: ���Υ�åɤϡ�Fixnum, Integer �����ư���ޤ�
|
14
14
|
��������ˤ�� Float �� step �Ǥ���褦�ˤʤ�ޤ�����
|
15
15
|
|
16
16
|
1.1.step(1.5, 0.1) {|n| p n}
|
@@ -20,3 +20,17 @@
|
|
20
20
|
1.4
|
21
21
|
1.5
|
22
22
|
|
23
|
+
������ư���������� 0.1 �� 2�ʿ��Ǥ����Τ�ɽ�����Ǥ��ʤ��Τǡ��ʲ��Τ褦�ʥ롼�פǤϸ�����
|
24
|
+
�����ưտޤ�������롼�פ��ʤ����Ȥ����롣step �Ϥ��θ������θ��
|
25
|
+
�Ƽ�������Ƥ��롣
|
26
|
+
|
27
|
+
i = 1.1
|
28
|
+
while i <= 1.5
|
29
|
+
p i
|
30
|
+
i += 0.1
|
31
|
+
end
|
32
|
+
=> 1.1
|
33
|
+
1.2
|
34
|
+
1.3
|
35
|
+
1.4 <- 1.5 ��ɽ������ʤ�
|
36
|
+
|
@@ -1,7 +1,101 @@
|
|
1
|
+
--- ceil
|
2
|
+
--- floor
|
3
|
+
--- round
|
1
4
|
--- truncate
|
2
5
|
|
3
|
-
|
6
|
+
self �������˴ݤ��̤��֤��ޤ���
|
4
7
|
|
5
|
-
|
6
|
-
|
8
|
+
�����˴ݤ���åɤ���:
|
9
|
+
|
10
|
+
# numbers=[1.9, 1.1, -1.1, -1.9]
|
11
|
+
# methods=%w(ceil floor round truncate)
|
12
|
+
#
|
13
|
+
# fmt = "%5s |" + " %10s" * methods.size + "\n"
|
14
|
+
#
|
15
|
+
# heading = sprintf(fmt, "", *methods)
|
16
|
+
# puts heading
|
17
|
+
# puts "-" * heading.size
|
18
|
+
#
|
19
|
+
# numbers.each {|n|
|
20
|
+
# printf(fmt, n,
|
21
|
+
# *methods.collect {|m| sprintf("%s", n.send(m))})
|
22
|
+
# }
|
23
|
+
|
24
|
+
_
|
25
|
+
| ceil floor round truncate
|
26
|
+
----------------------------------------------------
|
27
|
+
1.9 | 2 1 2 1
|
28
|
+
1.1 | 2 1 1 1
|
29
|
+
-1.1 | -1 -2 -1 -1
|
30
|
+
-1.9 | -1 -2 -2 -1
|
31
|
+
|
32
|
+
* ceil ���礭�����������شݤ�ޤ�(ŷ��)��
|
33
|
+
* floor �Ͼ��������������˴ݤ�ޤ�(��)��
|
34
|
+
* round �� �ᤤ���������˴ݤ�ޤ�������� 0.5, -0.5 ���ھ夲(1,
|
35
|
+
-1)����ޤ���������ͼθ����Ǥ����������ݤ�ǤϤ���ޤ���
|
36
|
+
* truncate(�����ơ�to_i) �� 0 �˶ᤤ���������˴ݤ�ޤ�(�ڼΤ�)��
|
37
|
+
* 0 ��������˴ݤ��(�ھ夲)��åɤϤ���ޤ���
|
38
|
+
|
39
|
+
�ھ夲��ceil, floor ����Ѥ��ưʲ��Τ褦������Ǥ��ޤ���
|
40
|
+
|
41
|
+
if n > 0 then
|
42
|
+
n.ceil
|
43
|
+
else
|
44
|
+
n.floor
|
45
|
+
end
|
46
|
+
|
47
|
+
�ޤ���Ǥ�շ���ھ夲���ڼΤơ��ͼθ�����Ԥ���åɤϰʲ��Τ褦��
|
48
|
+
����Ǥ��ޤ���
|
49
|
+
|
50
|
+
class Numeric
|
51
|
+
def roundup(d=0)
|
52
|
+
x = 10**d
|
53
|
+
if self > 0
|
54
|
+
(self * x).ceil.quo(x)
|
55
|
+
else
|
56
|
+
(self * x).floor.quo(x)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def rounddown(d=0)
|
61
|
+
x = 10**d
|
62
|
+
if self < 0
|
63
|
+
(self * x).ceil.quo(x)
|
64
|
+
else
|
65
|
+
(self * x).floor.quo(x)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def roundoff(d=0)
|
70
|
+
x = 10**d
|
71
|
+
if self < 0
|
72
|
+
(self * x - 0.5).ceil.quo(x)
|
73
|
+
else
|
74
|
+
(self * x + 0.5).floor.quo(x)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# numbers=[0.19, 0.15, 0.11, -0.11, -0.15, -0.19]
|
80
|
+
# methods=%w(roundup rounddown roundoff)
|
81
|
+
# arg=1
|
82
|
+
#
|
83
|
+
# fmt = "%5s |" + " %10s" * methods.size + "\n"
|
84
|
+
#
|
85
|
+
# heading = sprintf(fmt, "", *methods)
|
86
|
+
# puts heading
|
87
|
+
# puts "-" * heading.size
|
88
|
+
#
|
89
|
+
# numbers.each {|n|
|
90
|
+
# printf(fmt, n,
|
91
|
+
# *methods.collect {|m| sprintf("%s", n.send(m, arg))})
|
92
|
+
# }
|
93
|
+
# | roundup rounddown roundoff
|
94
|
+
# -----------------------------------------
|
95
|
+
# 0.19 | 0.2 0.1 0.2
|
96
|
+
# 0.15 | 0.2 0.1 0.2
|
97
|
+
# 0.11 | 0.2 0.1 0.1
|
98
|
+
# -0.11 | -0.2 -0.1 -0.1
|
99
|
+
# -0.15 | -0.2 -0.1 -0.2
|
100
|
+
# -0.19 | -0.2 -0.1 -0.2
|
7
101
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
�ޥå�����٤����Ԥ�ʤ���������� gsub ��Ʊ���Ǥ���
|
17
17
|
|
18
18
|
((*����*)): gsub �ι�ˤ� sub/gsub ����Ѥ����Ǥ���
|
19
|
-
��������Ƥ��ޤ���gsub �⻲�Ȥ��Ƥ���������
|
19
|
+
��������Ƥ��ޤ���gsub �⻲�Ȥ��Ƥ���������
|
20
20
|
|
21
21
|
ruby 1.7 feature: 1.6 �����ϡ�pattern ��ʸ����ξ�硢
|
22
22
|
����ʸ���������ɽ���˥���ѥ��뤷�Ƥ��ޤ�����1.7 �ʹߤϡ�����ʸ��
|
@@ -16,7 +16,7 @@
|
|
16
16
|
�ޥå�����٤����Ԥ�ʤ���������� gsub ��Ʊ���Ǥ���
|
17
17
|
|
18
18
|
((*����*)): gsub �ι�ˤ� sub/gsub ����Ѥ����Ǥ���
|
19
|
-
��������Ƥ��ޤ���gsub �⻲�Ȥ��Ƥ���������
|
19
|
+
��������Ƥ��ޤ���gsub �⻲�Ȥ��Ƥ���������
|
20
20
|
|
21
21
|
ruby 1.7 feature: 1.6 �����ϡ�pattern ��ʸ����ξ�硢
|
22
22
|
����ʸ���������ɽ���˥���ѥ��뤷�Ƥ��ޤ�����1.7 �ʹߤϡ�����ʸ��
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,132 @@
|
|
1
|
+
= �Ȥ߹������
|
2
|
+
|
3
|
+
--- TRUE obsolete
|
4
|
+
|
5
|
+
��ɽŪ�ʿ����͡�true ��Ʊ����Ruby �Ǥϵ��Ǥʤ���(false
|
6
|
+
�Ǥ� nil �Ǥ�ʤ���)�����ƿ��Ȥߤʤ���ޤ���
|
7
|
+
(obsolete�⻲�Ȥ��Ƥ���������)
|
8
|
+
|
9
|
+
--- FALSE obsolete
|
10
|
+
|
11
|
+
�����͡�false ��Ʊ����
|
12
|
+
(obsolete�⻲�Ȥ��Ƥ���������)
|
13
|
+
|
14
|
+
--- NIL obsolete
|
15
|
+
|
16
|
+
nil ��Ʊ����
|
17
|
+
(obsolete�⻲�Ȥ��Ƥ���������)
|
18
|
+
|
19
|
+
--- STDIN
|
20
|
+
|
21
|
+
ɸ�����ϡ�$stdin �Υǥե�����͡�
|
22
|
+
|
23
|
+
--- STDOUT
|
24
|
+
|
25
|
+
ɸ����ϡ�$stdout �Υǥե�����͡�
|
26
|
+
|
27
|
+
--- STDERR
|
28
|
+
|
29
|
+
ɸ�२�顼���ϡ�$stderr �Υǥե�����͡�
|
30
|
+
|
31
|
+
--- ENV
|
32
|
+
|
33
|
+
�Ķ��ѿ���ɽ��(����)Ϣ������(�ܺ٤� ENV ��)������Ϣ����
|
34
|
+
����ͤ��ѹ�����Ȼҥץ������δĶ��Ȥ��ư����Ѥ���ޤ���
|
35
|
+
|
36
|
+
--- ARGF
|
37
|
+
|
38
|
+
����(�ʤ����ɸ������)�ǹ�������벾�ۥե����� (�ܺ٤� ARGF
|
39
|
+
��)���Ĥޤ� gets �� ARGF.gets ��Ʊ
|
40
|
+
����̣�Ǥ���ARGF.file �Ǹ����ɤ߹�����Υե����륪�֥���
|
41
|
+
���Ȥ���ARGF.filename �Ǹ����ɤ߹�����Υե�����̾����
|
42
|
+
���ޤ���
|
43
|
+
|
44
|
+
--- ARGV
|
45
|
+
|
46
|
+
Ruby������ץȤ�Ϳ����줿�������Ȥ߹����ѿ� $* ��
|
47
|
+
��̾��Ruby���Ȥ��Ф�������ϼ�������Ƥ��ޤ���
|
48
|
+
|
49
|
+
--- DATA
|
50
|
+
|
51
|
+
������ץȤ� __END__
|
52
|
+
(������ץȤν��� [�ץ������/�ץ������ν���])
|
53
|
+
�ʹߤ��������� File ���֥������ȡ�
|
54
|
+
|
55
|
+
((*����*)):
|
56
|
+
|
57
|
+
* DATA.rewind �ǰ�ư�����ɤߤȤ���֤ϡ�__END__ ľ���
|
58
|
+
�Ϥʤ���������ץȥե��������Ƭ�Ǥ���
|
59
|
+
* ������ץȤ�ɸ�����Ϥ����ɤߤ��ޤ줿����ɸ�����Ϥˤʤ�ޤ���
|
60
|
+
* ������ץȤ��ե������ɸ�����Ϥ����ɤߤ��ޤ�ʤ��ä����䡢
|
61
|
+
__END__ �ǽ��äƤ��ʤ����ˤ��������ޤ���
|
62
|
+
* require �� load ��
|
63
|
+
�ɤ߹��ޤ줿�ե��������Ǥ��äƤ⤽�Υե�����(__FILE__)
|
64
|
+
�ǤϤʤ��¹Ԥ��줿�ե�����($0)��ؤ��ޤ���
|
65
|
+
|
66
|
+
--- TOPLEVEL_BINDING
|
67
|
+
|
68
|
+
�ȥåץ�٥�Ǥ� Binding ���֥������ȡ�
|
69
|
+
|
70
|
+
--- RUBY_VERSION
|
71
|
+
|
72
|
+
Ruby �ΥС�������ʸ����Ruby �ΥС������ϡ�
|
73
|
+
major.minor.teeny �Ȥ��������Ǥ������줾����ֹ�
|
74
|
+
��(���ΤȤ���)���ʾ�ˤʤ�ʤ�����«����Ƥ��ޤ��Τǡ�
|
75
|
+
|
76
|
+
if RUBY_VERSION >= '1.6.7'
|
77
|
+
# �С������ 1.6.7 �ʹߤ�ͭ���ʽ���
|
78
|
+
else
|
79
|
+
# ��������ΥС�������ͭ���ʽ���
|
80
|
+
end
|
81
|
+
|
82
|
+
�ȥС������ΰ㤤�ˤ�������ʬ������Ȥ��Ǥ��ޤ���
|
83
|
+
|
84
|
+
version 1.8 �ޤǤϡ�minor ������ΥС������ϳ�ȯ�ǡ�
|
85
|
+
minor �������ΥС������ϰ����ǤǤ���1.9.0 �ʹߤϡ�
|
86
|
+
teeny �� 0 �ΥС������ȯ�ǤȤʤ�ͽ��Ǥ���
|
87
|
+
|
88
|
+
--- RUBY_RELEASE_DATE
|
89
|
+
|
90
|
+
Ruby �Υ�������ʸ����
|
91
|
+
|
92
|
+
--- RUBY_PLATFORM
|
93
|
+
|
94
|
+
�ץ�åȥե������ʸ����
|
95
|
+
|
96
|
+
--- VERSION obsolete
|
97
|
+
--- RELEASE_DATE obsolete
|
98
|
+
--- PLATFORM obsolete
|
99
|
+
|
100
|
+
�����ϡ��嵭����� RUBY_XXX �θŤ�̾���Ǥ���
|
101
|
+
obsolete�⻲�Ȥ��Ƥ���������
|
102
|
+
|
103
|
+
ruby 1.9 feature: ����������Ϻ������ޤ�����
|
104
|
+
|
105
|
+
--- SCRIPT_LINES__
|
106
|
+
|
107
|
+
��������ϡ��ǥե���ȤǤ��������Ƥ��ޤ���
|
108
|
+
|
109
|
+
����������ϥå���Ȥ���������줿��ˡ���������((*����ѥ���*))��
|
110
|
+
���ȡ����Υ������ե�����̾���ˡ�������������ʬ�䤷���������
|
111
|
+
�ˤ����ϥå������Ǥ����ꤵ��ޤ�����������ϥǥХå�(debug.rb)
|
112
|
+
�ʤɤ����Ѥ���Ƥ��ޤ���
|
113
|
+
|
114
|
+
# require 'pp'
|
115
|
+
SCRIPT_LINES__ = {}
|
116
|
+
require 'English'
|
117
|
+
# pp SCRIPT_LINES__
|
118
|
+
p SCRIPT_LINES__
|
119
|
+
|
120
|
+
# ��: ���Ϥϲù����Ƥ���ޤ���
|
121
|
+
# => {"/usr/local/lib/ruby/1.6/English.rb"=>
|
122
|
+
["alias $ERROR_INFO $!\n",
|
123
|
+
"alias $ERROR_POSITION $@\n",
|
124
|
+
"alias $LOADED_FEATURES $\"\n",
|
125
|
+
:
|
126
|
+
:
|
127
|
+
"alias $POSTMATCH $'\n",
|
128
|
+
"alias $LAST_PAREN_MATCH $+\n"]}
|
129
|
+
|
130
|
+
�ʤ���$SAFE��٥뤬 0 �Ǥʤ����ͭ���ˤϤʤ�ޤ�
|
131
|
+
�ޤ���eval �ˤ�륳��ѥ�����оݤˤϤʤ�ޤ�
|
132
|
+
��
|
@@ -0,0 +1,1210 @@
|
|
1
|
+
= �Ȥ߹��ߴؿ�
|
2
|
+
|
3
|
+
Ruby �ˤϸ�̩�ʰ�̣�Ǥϴؿ��Ϥ���ޤ���Kernel �⥸�塼���
|
4
|
+
�������Ƥ����åɤ� (�ɤ�����Ǥ�ؿ������ǸƤӽФ���Τ�)
|
5
|
+
¾����ˤ�����ؿ��Τ褦�˻Ȥ��ޤ��������Υ�åɤ���������
|
6
|
+
����¾�ξ��ؤαƶ���ͤ��ƹԤʤ�ɬ�פ�����ޤ���
|
7
|
+
|
8
|
+
--- ` str
|
9
|
+
|
10
|
+
ʸ���� str �������ޥ�ɤȤ��Ƽ¹Ԥ������ν��Ϥ�ʸ����Ȥ���
|
11
|
+
�֤��ޤ������Υ�åɤ� `str` �η����ǸƤФ�ޤ�
|
12
|
+
(%x(...) [��ƥ��/%��ˡ] �Ȥ���ɽ���ˤ�äƤ�ƤӽФ��ޤ���
|
13
|
+
�ܺ٤� ���ޥ�ɽ��� �Ȥ��Ƥ�������)��
|
14
|
+
|
15
|
+
�¹Ԥ������ޥ�ɤν�λ���ơ������� $? �ǻ��ȤǤ��ޤ���
|
16
|
+
|
17
|
+
���ޥ�ɤν��Ϥ�����ɬ�פ��ʤ���ñ�˥��ޥ�ɤ�¹Ԥ����������ʤ�
|
18
|
+
system ��Ȥ��ޤ����ä�ü�������椹�륳�ޥ�ɤǤ�
|
19
|
+
`command` �ϼ��Ԥ��뤫�⤷��ޤ���
|
20
|
+
|
21
|
+
--- Array(arg)
|
22
|
+
|
23
|
+
arg.to_ary �� arg.to_a ��ƤӽФ��ư�������
|
24
|
+
����Ѵ�������̤��֤��ޤ���
|
25
|
+
�Ѵ�������̤�����Ǥʤ�����㳰 TypeError ��ȯ��
|
26
|
+
���ޤ���
|
27
|
+
|
28
|
+
arg �� to_ary, to_a �Τ�����Υ�åɤ�ʤ�����
|
29
|
+
�����Ǥ����� [arg] ���֤��ޤ���
|
30
|
+
|
31
|
+
--- Float(arg)
|
32
|
+
|
33
|
+
��������ư��������(Float)���Ѵ�������̤��֤��ޤ���
|
34
|
+
|
35
|
+
��������ư���������ȸ��ʤ��ʤ�ʸ���������˻��ꤷ����硢�㳰
|
36
|
+
ArgumentError ��ȯ�����ޤ���
|
37
|
+
|
38
|
+
String#to_f [String/to_f] �⻲�Ȥ��Ƥ���������
|
39
|
+
|
40
|
+
p Float("10") # => 10.0
|
41
|
+
p Float("10e2") # => 1000.0
|
42
|
+
p Float("1e-2") # => 0.01
|
43
|
+
p Float(".1") # => 0.1
|
44
|
+
|
45
|
+
p Float("nan") # => NaN (ruby 1.7 feature: => invalid value (ArgumentError))
|
46
|
+
p Float("INF") # => Infinity (ruby 1.7 feature: => invalid value (ArgumentError))
|
47
|
+
p Float("-Inf") # => -Infinity (ruby 1.7 feature: => invalid value (ArgumentError))
|
48
|
+
p Float(("10" * 1000).to_f) # => Infinity
|
49
|
+
|
50
|
+
p Float("0xa.a") # => 10.625 # (ruby 1.7 feature: => invalid value (ArgumentError))
|
51
|
+
p Float(" \n10") # => 10.0 # ��Ƭ�ζ����̵�뤵���
|
52
|
+
p Float("1_0_0") # => 100.0 # `_' ��������ǤȤߤʤ�
|
53
|
+
p Float("") # => invalid value (ArgumentError)
|
54
|
+
p Float(nil) # => 0.0 # ruby 1.7 feature: cannot convert nil into Float (TypeError)
|
55
|
+
|
56
|
+
p Float(Object.new) # => cannot convert Object into Float (TypeError)
|
57
|
+
|
58
|
+
--- Integer(arg)
|
59
|
+
|
60
|
+
����������(Fixnum,Bignum)���Ѵ�������̤��֤��ޤ���
|
61
|
+
���͡�ʸ����ʳ��Υ��֥������Ȥ��Ф��Ƥ� to_i ��åɤ�
|
62
|
+
���Ѥ��ޤ�(ruby 1.7 feature: 1.7 �Ǥϡ�to_int)��
|
63
|
+
�Ѵ�������̤�����(Integer�Υ��֥��饹)�Ǥʤ����
|
64
|
+
�㳰 TypeError ��ȯ�����ޤ���
|
65
|
+
|
66
|
+
������ʸ����Ǥ��ä����ˤϡ�0x, 0b, 0 �ʤɤ���Ƭ���˱�����
|
67
|
+
���줾�� 16 �ʡ�2 �ʡ�8 �ʿ��Ȥ����Ѵ����ޤ���
|
68
|
+
|
69
|
+
�����ȸ��ʤ��ʤ�ʸ���������˻��ꤷ����硢�㳰 ArgumentError
|
70
|
+
��ȯ�����ޤ���
|
71
|
+
|
72
|
+
p Integer(10.1) # => 10
|
73
|
+
p Integer(10.8) # => 10
|
74
|
+
p Integer("10") # => 10
|
75
|
+
p Integer("10_0_0") # => 1000
|
76
|
+
p Integer("10__0") # => 100
|
77
|
+
# => invalid value for Integer: "10__0" (ArgumentError) (ruby 1.7 feature)
|
78
|
+
p Integer("_10") # => invalid value for Integer: "_10" (ArgumentError)
|
79
|
+
p Integer("10_") # => invalid value for Integer: "10_" (ArgumentError)
|
80
|
+
p Integer("0d10") # => invalid value for Integer: "0d10" (ArgumentError)
|
81
|
+
# => 10 (ruby 1.7 feature)
|
82
|
+
p Integer("010") # => 8
|
83
|
+
p Integer("0o10") # => invalid value for Integer: "0o10" (ArgumentError) (ruby 1.7 feature)
|
84
|
+
# => 8
|
85
|
+
p Integer("0x10") # => 16
|
86
|
+
p Integer("0b10") # => 2
|
87
|
+
p Integer(" \n10\t ") # => 10
|
88
|
+
p Integer("") # => `Integer': invalid value for Integer: "" (ArgumentError)
|
89
|
+
p Integer(nil) # => 0
|
90
|
+
|
91
|
+
p Integer(Object.new) # => cannot convert Object into Integer (TypeError)
|
92
|
+
|
93
|
+
String#hex [String/hex],
|
94
|
+
String#oct [String/oct],
|
95
|
+
String#to_i [String/to_i] �⻲�Ȥ��Ƥ���������
|
96
|
+
|
97
|
+
--- String(arg)
|
98
|
+
|
99
|
+
arg.to_s ��ƤӽФ��ư�����ʸ������Ѵ�����
|
100
|
+
��̤��֤��ޤ���
|
101
|
+
�Ѵ�������̤�ʸ����Ǥʤ�����㳰 TypeError ��ȯ
|
102
|
+
�����ޤ���
|
103
|
+
arg ��ʸ����ξ�硢���⤻�� arg ���֤��ޤ���
|
104
|
+
|
105
|
+
--- abort
|
106
|
+
--- abort(message) ruby 1.7 feature
|
107
|
+
|
108
|
+
Ruby �ץ�������۾ェλ���ޤ���exit �Ȥΰ㤤�ϡ�
|
109
|
+
�ƤӽФ����� $! �� nil �Ǥʤ���Ф����㳰��
|
110
|
+
��å�������ɸ�२�顼���Ϥ˽��Ϥ��뤳�Ȥȡ��ץ������ν�λ���ơ�
|
111
|
+
������ EXIT_FAILURE(�ۤȤ�ɤδĶ��Ǥ�1) ����Ǥ��뤳�ȤǤ���
|
112
|
+
|
113
|
+
ruby 1.7 feature: ���� message ����ꤹ���
|
114
|
+
message �� message �����ꤷ
|
115
|
+
��ɸ�२�顼���Ϥ˽��Ϥ��ޤ���
|
116
|
+
|
117
|
+
--- at_exit { .... }
|
118
|
+
|
119
|
+
Ϳ����줿�֥��å��ץ��λ���˼¹Ԥ��ޤ���at_exit
|
120
|
+
����åɤǤ�����������С�END �֥��å��ˤ�뽪λ
|
121
|
+
��������Ͽ��Ʊ���Ǥ�����Ͽ������������ä����ȤϤǤ��ޤ���
|
122
|
+
��λ�����⻲�Ȥ��Ƥ���������
|
123
|
+
|
124
|
+
��Ͽ���������� Proc ���֥������Ȥ��֤��ޤ���
|
125
|
+
|
126
|
+
--- autoload(const_name, feature)
|
127
|
+
--- autoload?(const_name) ruby 1.8 feature
|
128
|
+
|
129
|
+
��� const_name ��ǽ�˻��Ȥ������� feature ��
|
130
|
+
require ����褦�����ꤷ�ޤ���const_name
|
131
|
+
��ʸ����ޤ��� Symbol �ǻ��ꤷ�ޤ���
|
132
|
+
�ʤ���const_name �ˤϡ�"::" �黻�Ҥ�ޤ�뤳�ȤϤǤ��ޤ���
|
133
|
+
(�Ĥޤꡢ�ȥåץ�٥�������������Ǥ��ޤ���)��
|
134
|
+
|
135
|
+
nil ���֤��ޤ���
|
136
|
+
|
137
|
+
ruby 1.8 feature: Ǥ�դΥ��饹���⥸�塼�������� autoload
|
138
|
+
�Ǥ��ޤ�����Ϥꡢconst_name �� "::" �黻�Ҥ�ޤ�뤳�ȤϤ�
|
139
|
+
���ޤ����ʲ��Τ褦�������������Ǥ��ޤ���(�ºݤˤϡ�
|
140
|
+
Module#autoload [Module/autoload] ���ƤФ�ޤ�)
|
141
|
+
|
142
|
+
------- /tmp/foo.rb ---------
|
143
|
+
class Foo
|
144
|
+
class Bar
|
145
|
+
end
|
146
|
+
end
|
147
|
+
----- end of /tmp/foo.rb ----
|
148
|
+
|
149
|
+
class Foo
|
150
|
+
autoload :Bar, '/tmp/foo.rb'
|
151
|
+
end
|
152
|
+
p Foo::Bar
|
153
|
+
|
154
|
+
���뤤�ϡ��ʲ��Τ褦�ˤ�Ǥ��ޤ���
|
155
|
+
|
156
|
+
class Foo
|
157
|
+
end
|
158
|
+
Foo.autoload :Bar, '/tmp/foo.rb'
|
159
|
+
p Foo::Bar
|
160
|
+
|
161
|
+
autoload? �ϡ�autoload ������ޤ��������Ƥʤ�(�����ɤ����
|
162
|
+
���ʤ�)�Ȥ��ˤ��Υѥ�̾���֤��ޤ����ޤ��������ɺѤߤʤ� nil ���֤�
|
163
|
+
�ޤ���
|
164
|
+
|
165
|
+
------- /tmp/foo.rb ---------
|
166
|
+
class Foo
|
167
|
+
class Bar
|
168
|
+
end
|
169
|
+
end
|
170
|
+
----- end of /tmp/foo.rb ----
|
171
|
+
|
172
|
+
class Foo
|
173
|
+
end
|
174
|
+
Foo.autoload :Bar, '/tmp/foo.rb'
|
175
|
+
p Foo.autoload?(:Bar) # => "/tmp/foo.rb"
|
176
|
+
p Foo::Bar # => Foo::Bar
|
177
|
+
p Foo.autoload?(:Bar) # => nil
|
178
|
+
|
179
|
+
�ʲ��Τ褦�ˡ�autoload �����饤�֥�꤬�ͥ��Ȥ��������������ʤ���
|
180
|
+
�硢�츫�������ư��Ƥ���褦�˸�����Τ����դ�ɬ�פǤ�(�ٹ���
|
181
|
+
���������ФƤ��ޤ�)��
|
182
|
+
|
183
|
+
------- /tmp/bar.rb ---------
|
184
|
+
class Bar
|
185
|
+
end
|
186
|
+
----- end of /tmp/bar.rb ----
|
187
|
+
|
188
|
+
class Foo
|
189
|
+
autoload :Bar, '/tmp/bar.rb'
|
190
|
+
end
|
191
|
+
p Foo::Bar
|
192
|
+
p Foo.autoload?(:Bar)
|
193
|
+
|
194
|
+
# => -:4: warning: toplevel constant Bar referenced by Foo::Bar
|
195
|
+
Bar
|
196
|
+
nil
|
197
|
+
|
198
|
+
����ϰʲ��Τ褦�˥ͥ��Ȥ�������������Τ�Ʊ�����ȤǤ���
|
199
|
+
|
200
|
+
class Foo
|
201
|
+
end
|
202
|
+
class Bar
|
203
|
+
end
|
204
|
+
p Foo::Bar
|
205
|
+
|
206
|
+
# => -:5: warning: toplevel constant Bar referenced by Foo::Bar
|
207
|
+
Bar
|
208
|
+
|
209
|
+
--- binding
|
210
|
+
|
211
|
+
�ѿ�����åɤʤɤδĶ������ޤ�� Binding ���֥������Ȥ�
|
212
|
+
���������֤��ޤ����̾eval ����������Ȥ��ƻȤ��ޤ���
|
213
|
+
|
214
|
+
--- caller([level])
|
215
|
+
|
216
|
+
level �ʾ�(������ά���ϡ�1)�θƤӽФ����ξ���� $@
|
217
|
+
�η����ΥХå��ȥ졼��(ʸ���������)�Ȥ����֤��ޤ����ȥåץ�٥��
|
218
|
+
�϶���������֤��ޤ���caller ������ͤ� $@ ���������뤳�Ȥ�
|
219
|
+
�㳰��ȯ�����֤�����Ǥ��ޤ���
|
220
|
+
|
221
|
+
def foo
|
222
|
+
p caller(0)
|
223
|
+
p caller(1)
|
224
|
+
p caller(2)
|
225
|
+
p caller(3)
|
226
|
+
end
|
227
|
+
|
228
|
+
def bar
|
229
|
+
foo
|
230
|
+
end
|
231
|
+
|
232
|
+
bar
|
233
|
+
|
234
|
+
=> ["-:2:in `foo'", "-:9:in `bar'", "-:12"]
|
235
|
+
["-:9:in `bar'", "-:12"]
|
236
|
+
["-:12"]
|
237
|
+
[]
|
238
|
+
|
239
|
+
�ʲ��δؿ��ϡ�caller �����Ǥ��� [�ե�����̾, ���ֹ�, ��å�̾]
|
240
|
+
����Ф����֤��ޤ���
|
241
|
+
|
242
|
+
def parse_caller(at)
|
243
|
+
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
|
244
|
+
file = $1
|
245
|
+
line = $2.to_i
|
246
|
+
method = $3
|
247
|
+
[file, line, method]
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
def foo
|
252
|
+
p parse_caller(caller.first)
|
253
|
+
end
|
254
|
+
|
255
|
+
def bar
|
256
|
+
foo
|
257
|
+
p parse_caller(caller.first)
|
258
|
+
end
|
259
|
+
|
260
|
+
bar
|
261
|
+
p parse_caller(caller.first)
|
262
|
+
|
263
|
+
=> ["-", 15, "bar"]
|
264
|
+
["-", 19, nil]
|
265
|
+
nil
|
266
|
+
|
267
|
+
�ʲ��ϡ�$DEBUG �����ξ������Ω�� debug �ؿ�
|
268
|
+
�Υ���ץ�Ǥ���
|
269
|
+
|
270
|
+
def debug(*args)
|
271
|
+
p [caller.first, *args] if $DEBUG
|
272
|
+
end
|
273
|
+
|
274
|
+
debug "debug information"
|
275
|
+
|
276
|
+
=> ["-:5", "debug information"]
|
277
|
+
|
278
|
+
--- callcc {|cont| .... }
|
279
|
+
|
280
|
+
Continuation �Ȥ��Ƥ���������
|
281
|
+
|
282
|
+
--- catch(tag) {|tag| .... }
|
283
|
+
|
284
|
+
�֥��å���¹Ԥ��Ƥ����ͤ��֤��ޤ����֥��å��μ¹����
|
285
|
+
tag ��Ʊ��̾���� throw ���Ԥ�줿
|
286
|
+
���ϡ����� throw ���������������ͤȤ��ޤ���
|
287
|
+
|
288
|
+
�㤨�аʲ��Υ����ɤ�¹Ԥ���� some_process ��
|
289
|
+
�ƤӽФ��줺���ޤ� catch ������ͤ� 10 �ǤϤʤ� 25 ��
|
290
|
+
�ʤ�ޤ���
|
291
|
+
|
292
|
+
ret = catch(:exit) {
|
293
|
+
throw :exit, 25
|
294
|
+
some_process()
|
295
|
+
10
|
296
|
+
}
|
297
|
+
p ret #=> 25
|
298
|
+
|
299
|
+
�ͥ��Ȥ����롼�פ� break �ˤ�äư쵤��ȴ
|
300
|
+
���뤳�ȤϤǤ��ޤ���
|
301
|
+
���Τ褦�ʾ�硢catch �� �㳰 [���湽¤/begin] ����Ѥ��ޤ���
|
302
|
+
|
303
|
+
catch(:loop1) {
|
304
|
+
for i in 1..2
|
305
|
+
for j in 1..2
|
306
|
+
throw :loop1, j
|
307
|
+
end
|
308
|
+
end
|
309
|
+
}
|
310
|
+
|
311
|
+
--- chop
|
312
|
+
--- chop!
|
313
|
+
|
314
|
+
�Ȥ߹����ѿ� $_ ��Ǹ��ʸ�������������Τˤ�
|
315
|
+
�ޤ�(��ü��"\r\n"�Ǥ����2ʸ���������ޤ�)��
|
316
|
+
chop! ��ʸ���Τ�Τ��ѹ������η�̤��֤��ޤ�����
|
317
|
+
������ʸ���ʤ���� nil ���֤��ޤ���
|
318
|
+
|
319
|
+
�ܺ٤� String#chop [String/chop] �Ȥ��Ƥ���������
|
320
|
+
$_.chop �ȴؿ� chop �Ǥϰʲ������ǰ㤤������ޤ���
|
321
|
+
|
322
|
+
* chop �� $_ ���ͤԡ����ơ����ԡ�����������
|
323
|
+
$_ ��((*������*))���ޤ���
|
324
|
+
|
325
|
+
--- chomp([rs])
|
326
|
+
--- chomp!([rs])
|
327
|
+
|
328
|
+
�Ȥ߹����ѿ� $_ �� rs �ǻ��ꤵ�������
|
329
|
+
��ʸ��������������Τˤ��ޤ���
|
330
|
+
chomp! ��ʸ���Τ�Τ��ѹ������η�̤��֤��ޤ�����
|
331
|
+
������ʸ���ʤ���� nil ���֤��ޤ���
|
332
|
+
rs �Υǥե�����ͤ� $/ �Ǥ���
|
333
|
+
|
334
|
+
�ܺ٤� String#chomp [String/chomp] �Ȥ��Ƥ���������
|
335
|
+
$_.chomp �ȴؿ� chomp �Ǥϰʲ������ǰ㤤������ޤ���
|
336
|
+
|
337
|
+
* chomp �� $_ ���ͤԡ����ơ����ԡ�����������
|
338
|
+
$_ ��((*������*))���ޤ���
|
339
|
+
|
340
|
+
--- eval(expr[, binding[, fname[, lineno=1]]])
|
341
|
+
|
342
|
+
ʸ���� expr �� Ruby �ץ������Ȥ���ɾ�����Ƥ��η�̤��֤���
|
343
|
+
������2������ Proc ���֥������Ȥޤ��� Binding ���֥���
|
344
|
+
���Ȥ�Ϳ������硢���Υ��֥������Ȥ�������������ƥ����Ȥ�ʸ�����
|
345
|
+
ɾ�����ޤ���binding �⻲�Ȥ��Ƥ���������
|
346
|
+
|
347
|
+
def foo
|
348
|
+
a = 1
|
349
|
+
binding
|
350
|
+
end
|
351
|
+
|
352
|
+
eval("p a", foo) # => 1
|
353
|
+
|
354
|
+
fname �� lineno ��Ϳ����줿���ˤϡ��ե�����
|
355
|
+
fname ���ֹ� lineno ��ʸ�����뤫�Τ褦��
|
356
|
+
����ѥ��뤵�졢�����å��ȥ졼����ɽ���ʤɤ��ؤ��뤳�Ȥ�
|
357
|
+
�Ǥ��ޤ���
|
358
|
+
|
359
|
+
--- exec(command)
|
360
|
+
--- exec(program[, arg1[, arg2[, ...]]])
|
361
|
+
|
362
|
+
command �ǻ��ꤵ�줿���ޥ�ɤ�¹Ԥ��ޤ����ץ������μ¹ԥ���
|
363
|
+
�ɤϤ��Υ��ޥ��(���뤤�� shell�����)�ˤʤ�Τǡ���ư������������
|
364
|
+
�硢���δؿ���������ޤ���ư�˼��Ԥ���ruby ���ץ����
|
365
|
+
�椬��ä����ϡ��㳰 Errno::EXXX ��ȯ�����ޤ���
|
366
|
+
|
367
|
+
�����ܤη����Ǥ� command �� shell �Υʸ��
|
368
|
+
(* ? {} [] <> () ~ & | \ $ ; ' ` " \n)��ޤ��硢
|
369
|
+
shell ��ͳ�Ǽ¹Ԥ���ޤ��������Ǥʤ���Х��ץ����ľ��
|
370
|
+
�¹Ԥ���ޤ���
|
371
|
+
|
372
|
+
�����ܤη����Ǥϡ���� shell ���ͳ�����˼¹Ԥ���ޤ���
|
373
|
+
���ξ��ˤ϶���� shell �Υ����饯���⤽�Τޤ�
|
374
|
+
program �ΰ������Ϥ���ޤ���
|
375
|
+
��Ƭ�ΰ�����2���Ǥ�����Ǥ��ä���硢��1���Ǥ�ʸ���ºݤ�
|
376
|
+
��ư����ץ������Υѥ��Ǥ��ꡢ��2���Ǥ��֤ߤ������פΥץ�
|
377
|
+
�����̾�ˤʤ�ޤ���
|
378
|
+
|
379
|
+
ruby 1.8 feature: ���ΤȤ�����1���Ǥ�ե�ѥ��ǻ��ꤷ�ʤ��Ƥ�
|
380
|
+
�Ķ��ѿ� PATH ����õ���ޤ���
|
381
|
+
|
382
|
+
--- exit([status])
|
383
|
+
|
384
|
+
Ruby�ץ������μ¹Ԥ�λ���ޤ���status �Ȥ�����
|
385
|
+
����Ϳ����줿��硢�����ͤ� Ruby ���ޥ�ɤν�λ���ơ������Ȥ�
|
386
|
+
�ޤ����ǥե���Ȥν�λ���ơ������� 0 �Ǥ���
|
387
|
+
|
388
|
+
exit ���㳰 SystemExit ��ȯ������
|
389
|
+
�뤳�Ȥˤ�äƥץ������μ¹Ԥ�λ�����ޤ��Τǡ�
|
390
|
+
ɬ�פ˱����� rescue [���湽¤/begin] �����ª���뤳�Ȥ��Ǥ��ޤ���
|
391
|
+
|
392
|
+
ruby 1.8 feature: status��true�ξ�硢EXIT_SUCCESS��
|
393
|
+
��λ���ơ������Ȥ��ޤ���status��false�ξ�硢EXIT_FAILURE��
|
394
|
+
��λ���ơ������Ȥ��ޤ����ǥե���Ȥν�λ���ơ�������EXIT_SUCCESS��
|
395
|
+
�ѹ�����Ƥ��ޤ���
|
396
|
+
|
397
|
+
--- exit!([status])
|
398
|
+
|
399
|
+
���� status ��λ���ơ������Ȥ��ơ�Ruby �ץ������
|
400
|
+
�μ¹Ԥ�λ���ޤ����ǥե���Ȥν�λ���ơ������� -1 �Ǥ���
|
401
|
+
|
402
|
+
exit! �� exit �Ȥϰ�äơ��㳰�����ʤɤϰ��ڹԤʤ��ޤ�
|
403
|
+
��fork�θ塢�ҥץ�������λ��������ʤɤ���
|
404
|
+
�����ޤ���
|
405
|
+
|
406
|
+
ruby 1.8 feature: status��true�ξ�硢EXIT_SUCCESS��
|
407
|
+
��λ���ơ������Ȥ��ޤ���status��false�ξ�硢EXIT_FAILURE��
|
408
|
+
��λ���ơ������Ȥ��ޤ����ǥե���Ȥν�λ���ơ�������EXIT_FAILURE��
|
409
|
+
�ѹ�����Ƥ��ޤ���
|
410
|
+
|
411
|
+
--- fork
|
412
|
+
--- fork { ... }
|
413
|
+
|
414
|
+
fork(2) [manual page] �����ƥॳ�����Ȥäƥץ�������ʣ�����
|
415
|
+
��ޤ����ƥץ������Ǥϻҥץ������Υץ�����ID�ҥץ������Ǥ�
|
416
|
+
nil ���֤��ޤ����֥��å�����ꤷ�ƸƤӽФ������ˤϡ�������
|
417
|
+
���ҥץ������ǥ֥��å���ɾ�����ޤ���
|
418
|
+
|
419
|
+
ruby 1.8.2 feature: fork ���� STDOUT �� STDERR ��
|
420
|
+
flush ���ޤ���
|
421
|
+
|
422
|
+
--- gets([rs])
|
423
|
+
--- readline([rs])
|
424
|
+
|
425
|
+
Ruby ���ץ�¹Ի��˰����Ȥ���Ϳ����줿�ե�����(�ʤ����ɸ��
|
426
|
+
����)��Ĥʤ�������Ū�ʥե�����(�Ȥ߹����ѿ� $<
|
427
|
+
�� ARGF �ǥ��������Ǥ���) �������ɤ߹���ǡ�ʸ������֤���
|
428
|
+
�����ե�����ν������ã�������ˤ� nil ���֤��ޤ���
|
429
|
+
|
430
|
+
�Ԥζ��ڤ�ϰ��� rs �ǻ��ꤷ��ʸ����ˤʤ�ޤ���rs ��
|
431
|
+
�ǥե�����ͤ��Ȥ߹����ѿ� $/ ���ͤǤ����ɤ߹�
|
432
|
+
���ʸ������Ȥ߹����ѿ� $_ �ˤ⥻�åȤ���ޤ���
|
433
|
+
|
434
|
+
rs �� nil ����ꤹ��ȹԶ��ڤ�ʤ��Ȥߤʤ��ƥե���������Ƥ�
|
435
|
+
���٤��ɤ߹��ߤޤ���
|
436
|
+
��ʸ���� "" ����ꤹ���Ϣ³������Ԥ�Ԥζ��ڤ�Ȥߤʤ��ޤ�
|
437
|
+
(�ѥ饰��ե⡼��)��
|
438
|
+
|
439
|
+
readline �� gets ��Ʊ��Ư���ޤ�����
|
440
|
+
�ե�����κǸ�ޤ��ɤ���㳰 EOFError ��ȯ�������ޤ���
|
441
|
+
|
442
|
+
--- global_variables
|
443
|
+
|
444
|
+
�ץ����������������Ƥ��륰�����Х��ѿ�(`$'�ǻϤޤ��ѿ�)̾��
|
445
|
+
������֤��ޤ���
|
446
|
+
|
447
|
+
local_variables,
|
448
|
+
Object#instance_variables [Object/instance_variables],
|
449
|
+
Module.constants,
|
450
|
+
Module#constants [Module/constants],
|
451
|
+
Module#class_variables [Module/class_variables]
|
452
|
+
�⻲�Ȥ��Ƥ���������
|
453
|
+
|
454
|
+
--- gsub(pattern[, replace])
|
455
|
+
--- gsub!(pattern[, replace])
|
456
|
+
--- gsub(pattern) {|matched| ... }
|
457
|
+
--- gsub!(pattern) {|matched| ... }
|
458
|
+
|
459
|
+
�Ȥ߹����ѿ� $_ �λؤ�ʸ������� pattern ��
|
460
|
+
�ޥå�������ʬ������ replace ���֤�������ʸ������֤��ޤ���
|
461
|
+
���� replace ����ά���줿���ˤϥ��ƥ졼���Ȥ���ư����֥���
|
462
|
+
����ɾ��������̤��ִ���Ԥ��ޤ����֥��å��ˤϰ����Ȥ��ƥޥå�����
|
463
|
+
ʸ�����Ϥ���ޤ���
|
464
|
+
|
465
|
+
$_ = "foobar"
|
466
|
+
p gsub(/o+/) {|m|
|
467
|
+
m.upcase
|
468
|
+
}
|
469
|
+
# => "fOObar"
|
470
|
+
|
471
|
+
gsub! �� $_ �λؤ��Ƥ���ʸ���Τ�Τ�����ޤ���
|
472
|
+
�ܺ٤ϡ�String#gsub [String/gsub] �Ȥ��Ƥ���������
|
473
|
+
String#gsub �ȴؿ� gsub �Ǥϰʲ������ǰ㤤������ޤ���
|
474
|
+
|
475
|
+
* gsub��åɤ� $_ ���ͤԡ����ơ����ԡ�����������
|
476
|
+
$_ ��((*������*))���ޤ���
|
477
|
+
|
478
|
+
--- iterator? obsolete
|
479
|
+
--- block_given?
|
480
|
+
|
481
|
+
��åɤ˥֥��å���Ϳ�����Ƥ�����ˤϿ��������Ǥʤ����˵�
|
482
|
+
���֤��ޤ���
|
483
|
+
|
484
|
+
--- load(file[, priv])
|
485
|
+
|
486
|
+
Ruby �ץ������ file ������ɤ��Ƽ¹Ԥ��ޤ���
|
487
|
+
file �����Хѥ��ΤȤ��� file ��������ɤ��ޤ���
|
488
|
+
file �����Хѥ��ΤȤ����Ȥ߹����ѿ� $:
|
489
|
+
�˼������ѥ�����֤�õ�����ǽ�˸��դ��ä��ե������
|
490
|
+
�����ɤ��ޤ������ΤȤ���$: ������ʸ�������Ƭʸ����
|
491
|
+
`~' (�����) ���ȡ��Ķ��ѿ� HOME ���ͤ�Ÿ������ޤ���
|
492
|
+
|
493
|
+
��ά��ǽ�ʰ��� priv �����ΤȤ���
|
494
|
+
�����ɡ��¹Ԥ�����Ū�����������̵̾�⥸�塼���
|
495
|
+
�ȥåץ�٥�Ȥ��ƹԤ�졢�������Х��̾�����֤�������ޤ���
|
496
|
+
|
497
|
+
�����ɤ������������� true ���֤��ޤ���
|
498
|
+
���Ԥ��������㳰 LoadError ��ȯ�����ޤ���
|
499
|
+
|
500
|
+
[require �� load �ΰ㤤�ˤĤ���]
|
501
|
+
|
502
|
+
require ��Ʊ���ե�����ϰ��٤������������ɤ��ޤ���
|
503
|
+
load ��̵���˥����ɤ��ޤ����ޤ���require �ϳ�ĥ��
|
504
|
+
.rb �� .so ��ưŪ���䴰���ޤ�����load �ϹԤ��ޤ���
|
505
|
+
require �ϥ饤�֥��Υ����ɡ�load ������ե������
|
506
|
+
�ɤ߹��ߤʤɤ˻Ȥ��Τ�ŵ��Ū�����ӤǤ���
|
507
|
+
|
508
|
+
# ������
|
509
|
+
load "#{ENV['HOME']}/.myapprc"
|
510
|
+
load "/etc/myapprc"
|
511
|
+
|
512
|
+
�ʤ�������Υǥ��쥯�ȥ꤫��ե����������ɤ�������硢
|
513
|
+
load 'filename' �Ȥ���Τ���Ŭ�ڤǤ���ɬ�����Хѥ���
|
514
|
+
�ȤäƤ���������
|
515
|
+
|
516
|
+
--- local_variables
|
517
|
+
|
518
|
+
���ߤΥ������פ��������Ƥ�����������ѿ�̾��������֤��ޤ���
|
519
|
+
|
520
|
+
global_variables,
|
521
|
+
Object#instance_variables [Object/instance_variables],
|
522
|
+
Module.constants,
|
523
|
+
Module#constants [Module/constants],
|
524
|
+
Module#class_variables [Module/class_variables]
|
525
|
+
�⻲�Ȥ��Ƥ���������
|
526
|
+
|
527
|
+
--- loop { ... }
|
528
|
+
|
529
|
+
(���Ǥ���ʤ��¤�)�ʱ�˥֥��å���ɾ�����֤��ޤ���
|
530
|
+
|
531
|
+
--- open(file[, mode[, perm]])
|
532
|
+
--- open(file[, mode[, perm]]) {|io| ... }
|
533
|
+
|
534
|
+
file ���ץơ�File ���֥������Ȥ��֤��ޤ���
|
535
|
+
mode �ϡ��ʲ���ʸ��������(File::Constants �⥸�塼��
|
536
|
+
�������������)����ꤷ�ޤ�����ά���� "r" �����ꤵ�줿���
|
537
|
+
�Ȥߤʤ��ޤ���
|
538
|
+
|
539
|
+
* "r", RDONLY: �ե�������ɤ߹��ߥ⡼�ɤǥ����ץޤ���
|
540
|
+
|
541
|
+
* "w", WRONLY|CREAT|TRUNC: �ե��������ߥ⡼�ɤǥ���
|
542
|
+
�ץޤ��������ץ���˥ե����뤬���Ǥ�¸�ߤ��Ƥ����
|
543
|
+
�������Ƥ���ˤ��ޤ���
|
544
|
+
|
545
|
+
* "a", WRONLY|CREAT|APPEND: �ե��������ߥ⡼�ɤǥ���
|
546
|
+
�ץޤ������Ϥ�((*���*))�ե�������������ɲä����
|
547
|
+
��
|
548
|
+
|
549
|
+
|
550
|
+
"+" ������С��ե�������ɤ߽�ξ�ѥ⡼��(RDWR)�ǥ�����
|
551
|
+
��ޤ���
|
552
|
+
|
553
|
+
* "r+": �ե�������ɤ߽��֤���Ƭ�˥��åȤ���ޤ���
|
554
|
+
|
555
|
+
* "w+": "r+" ��Ʊ���Ǥ����������ץ���˥ե����뤬���Ǥ�
|
556
|
+
¸�ߤ��Ƥ���Ф������Ƥ���ˤ��ޤ���
|
557
|
+
|
558
|
+
* "a+": "r+" ��Ʊ���Ǥ����������ץ���˥ե����뤬���Ǥ�
|
559
|
+
¸�ߤ��Ƥ�����ɤ߽��֤��ե�����������˥��åȤ���
|
560
|
+
�ޤ���
|
561
|
+
|
562
|
+
�����Τ�������Ф��Ƥ� "b" �ե饰��("r+b"�Τ褦��)�Ĥ��뤳�Ȥ���
|
563
|
+
���ޤ�(�����ʤ� File::BINARY)�����ξ�硢�Х��ʥ�⡼�ɤǥ����ץ�
|
564
|
+
���ޤ�(�������������ƥब�ƥ����ȡ��Х��ʥ�ǥե��������̤����
|
565
|
+
��˸¤�ޤ�)
|
566
|
+
|
567
|
+
�� 3 ���� perm �� open(2) [manual page] ���� 3 ������Ʊ
|
568
|
+
������CREAT ���Υե�����Υ����������������ǻ��ꤷ�ޤ���
|
569
|
+
���ΰ����ϡ��� 2 ���������ͷ����Ǥʤ����̵�뤵��ޤ���
|
570
|
+
�ǥե���Ȥ� 0666 �Ǥ���
|
571
|
+
|
572
|
+
�ե�����̾�� `|' �ǻϤޤ���ˤ�³��ʸ����ޥ�ɤȤ��Ƶ�
|
573
|
+
ư�������ޥ�ɤ�ɸ�������Ϥ��Ф��ƥѥ��ץ饤����������ޤ�
|
574
|
+
|
575
|
+
�ե�����̾�� "|-" �Ǥ������open �� Ruby �λҥץ�����
|
576
|
+
�������������λҥץ������Ȥδ֤Υѥ���(IO���֥�������)���֤�
|
577
|
+
�ޤ���(���ΤȤ���ư��ϡ�IO.popen ��Ʊ���Ǥ���
|
578
|
+
File.open �ˤϥѥ��ץ饤����������뵡ǽ�Ϥ���ޤ���)��
|
579
|
+
|
580
|
+
((*����*)): Perl�Ȱۤʤꥳ�ޥ�ɤϾ�� `|' �ǻϤޤ�ޤ���
|
581
|
+
|
582
|
+
open ���֥��å��ȤȤ�˸ƤӽФ��줿����open �ϥե�����
|
583
|
+
���ץƥ֥��å���¹Ԥ����֥��å��μ¹Ԥ���λ����ȥե�����
|
584
|
+
���������ޤ������ξ��ϥ֥��å���ɾ��������̤��֤��ޤ����Ĥ�
|
585
|
+
�ꡢ�ʲ��Τ褦�ˤʤ�ޤ���
|
586
|
+
|
587
|
+
open(path, mode) do |f|
|
588
|
+
...
|
589
|
+
end
|
590
|
+
|
591
|
+
# �嵭�Ȥۤ�Ʊ��������
|
592
|
+
f = open(path, mode)
|
593
|
+
begin
|
594
|
+
...
|
595
|
+
ensure
|
596
|
+
f.close
|
597
|
+
end
|
598
|
+
|
599
|
+
--- p(obj, [obj2, ...])
|
600
|
+
|
601
|
+
obj ��ʹ֤��ɤߤ䤹�����ǽ��Ϥ��ޤ����ʲ��Υ����ɤ�Ʊ���Ǥ���
|
602
|
+
(Object#inspect [Object/inspect]����)
|
603
|
+
|
604
|
+
print obj.inspect, "\n", obj2.inspect, "\n", ...
|
605
|
+
|
606
|
+
nil ���֤��ޤ���
|
607
|
+
|
608
|
+
--- print([arg1[, arg2, ...]])
|
609
|
+
|
610
|
+
�������˽��Ϥ��ޤ���������Ϳ�����ʤ����ˤ��ѿ�
|
611
|
+
$_ ���ͤ���Ϥ��ޤ���
|
612
|
+
ʸ����ʳ��Υ��֥������Ȥ������Ȥ���Ϳ����줿���ˤϡ�
|
613
|
+
�������֥������Ȥ� to_s ��åɤˤ��ʸ������Ѵ�
|
614
|
+
���Ƥ�����Ϥ��ޤ���
|
615
|
+
��������nil ���Ф��Ƥ�ʸ���� "nil" ����Ϥ��ޤ�
|
616
|
+
|
617
|
+
�ѿ� $, (���ϥե�����ɥ��ѥ졼��)�� nil ��
|
618
|
+
�ʤ��ͤ����åȤ���Ƥ�����ˤϡ��ư����δ֤ˤ���ʸ�������Ϥ��ޤ���
|
619
|
+
�ѿ� $\ (���ϥ쥳���ɥ��ѥ졼��)�� nil �Ǥ�
|
620
|
+
���ͤ����åȤ���Ƥ�����ˤϡ��Ǹ�ˤ������Ϥ��ޤ���
|
621
|
+
|
622
|
+
nil ���֤��ޤ���
|
623
|
+
|
624
|
+
--- printf([port, ]format[, arg[, ...]])
|
625
|
+
|
626
|
+
C ����� printf ��Ʊ���褦�ˡ�format �˽���������ʸ�������
|
627
|
+
������ $> [�Ȥ߹����ѿ�] �˽��Ϥ��ޤ����������� IO �Υ�
|
628
|
+
�֥��饹�Υ����Ǥ��ä����Ϥ��Υ��֥������Ȥ��Ф��ƽ��Ϥ�
|
629
|
+
�Ԥʤ��ޤ���
|
630
|
+
������ 1 �Ĥ���ꤷ�ʤ���в��⤷�ޤ���
|
631
|
+
��
|
632
|
+
|
633
|
+
Ruby �ˤ����� format ʸ����γ�ĥ�ˤĤ��Ƥ�sprintf�ե����ޥå�
|
634
|
+
�ι�Ȥ��Ƥ���������
|
635
|
+
|
636
|
+
nil ���֤��ޤ���
|
637
|
+
|
638
|
+
--- proc { ... }
|
639
|
+
--- lambda { ... }
|
640
|
+
--- proc
|
641
|
+
--- lambda
|
642
|
+
|
643
|
+
Ϳ����줿�֥��å������³�����֥������� (Proc �Υ�����)
|
644
|
+
�����������֤��ޤ�(Proc.new��Ʊ���Ǥ�)��
|
645
|
+
|
646
|
+
�֥��å������ꤵ��ʤ���С��ƤӽФ����Υ�åɤǻ��ꤵ�줿�֥��å�
|
647
|
+
���³�����֥������ȤȤ����֤��ޤ����ƤӽФ����Υ�åɤ��֥��å��ʤ�
|
648
|
+
�ǸƤФ��� ArgumentError �㳰��ȯ�����ޤ���
|
649
|
+
|
650
|
+
--- putc(ch)
|
651
|
+
|
652
|
+
ʸ�� ch �� $> [�Ȥ߹����ѿ�] �˽��Ϥ��ޤ���
|
653
|
+
ch �������ʤ� 0 �� 255 ���ϰϤ��б�����ʸ�������
|
654
|
+
���ޤ���ch ��ʸ����ʤ顢������Ƭ��ʸ������Ϥ��ޤ���
|
655
|
+
|
656
|
+
ch ���֤��ޤ���
|
657
|
+
|
658
|
+
putc("ch")
|
659
|
+
putc(?c)
|
660
|
+
putc(99)
|
661
|
+
# => ccc
|
662
|
+
|
663
|
+
--- puts([obj[, obj2[, ....]]] )
|
664
|
+
|
665
|
+
obj �Ȳ��Ԥ���֤� $> [�Ȥ߹����ѿ�] �˽��Ϥ��ޤ���
|
666
|
+
�������ʤ���в��ԤΤߤ���Ϥ��ޤ���
|
667
|
+
|
668
|
+
����������ξ�硢�������ǤȲ��Ԥ��˽��Ϥ��ޤ���
|
669
|
+
�����ʸ����ʳ��Υ��֥������Ȥ������Ȥ���Ϳ����줿���ˤϡ�
|
670
|
+
�������֥������Ȥ�ǽ�� to_ary �ˤ������ء�
|
671
|
+
���� to_s ��åɤˤ��ʸ������Ѵ����ߤޤ���
|
672
|
+
��������nil ���Ф��Ƥ�ʸ���� "nil" ����Ϥ��ޤ�
|
673
|
+
|
674
|
+
���������Ԥǽ��äƤ���������Ф��Ƥ� puts ����
|
675
|
+
�ϲ��Ԥ���Ϥ��ޤ���
|
676
|
+
|
677
|
+
puts "foo", "bar\n", "baz"
|
678
|
+
puts "" # ���ԤΤ߽���
|
679
|
+
puts # ���ԤΤ߽���
|
680
|
+
puts "foo"
|
681
|
+
=> foo
|
682
|
+
bar
|
683
|
+
baz
|
684
|
+
|
685
|
+
|
686
|
+
foo
|
687
|
+
|
688
|
+
nil ���֤��ޤ���
|
689
|
+
|
690
|
+
print, warn �⻲�ȡ�
|
691
|
+
|
692
|
+
--- raise
|
693
|
+
--- raise(exception)
|
694
|
+
--- raise(message)
|
695
|
+
--- raise(error_type, message [, backtrace])
|
696
|
+
--- fail(error_type, message [, backtrace])
|
697
|
+
|
698
|
+
�㳰��ȯ�������ޤ���
|
699
|
+
|
700
|
+
������̵�����ϡ�Ʊ����åɤ�Ʊ���֥��å���ǺǸ�� rescue ���줿
|
701
|
+
�㳰���֥������� ($!) ���ȯ�������ޤ������Τ褦��
|
702
|
+
�㳰��¸�ߤ��ʤ��Ȥ����㳰 RuntimeError ��ȯ�������ޤ���
|
703
|
+
|
704
|
+
begin
|
705
|
+
open("nonexist")
|
706
|
+
rescue
|
707
|
+
raise # => `open': No such file or directory - "nonexist" (Errno::ENOENT)
|
708
|
+
end
|
709
|
+
|
710
|
+
��������Ĥξ�硢������ʸ����Ǥ���С�����ʸ�������
|
711
|
+
�������Ȥ��� RuntimeError �㳰��ȯ�������ޤ�������
|
712
|
+
���㳰���饹�ޤ����㳰���֥������ȤǤ��ä����ˤϤ�����
|
713
|
+
����ȯ�������ޤ���
|
714
|
+
|
715
|
+
raise "error message" # => -:1: error message (RuntimeError)
|
716
|
+
|
717
|
+
raise ArgumentError # => -:1: ArgumentError (ArgumentError)
|
718
|
+
|
719
|
+
raise ArgumentError.new # => -:1: ArgumentError (ArgumentError)
|
720
|
+
|
721
|
+
��������Ĥޤ��ϻ��Ĥξ�硢�������ǻ��ꤵ�줿�㳰�����������
|
722
|
+
Ϳ������å������ȤȤ��ȯ�������ޤ������ξ�硢�㳰���㳰���饹�ޤ���
|
723
|
+
�㳰���֥������Ȥǻ��ꤷ�ޤ����軰�������㳰ȯ�����Υ����å��ȥ졼��
|
724
|
+
�ǡ�caller ������ͤ�Ʊ�������Ǥʤ���Ф����ޤ���
|
725
|
+
|
726
|
+
raise ArgumentError, "error message"
|
727
|
+
# => -:1: error message (ArgumentError)
|
728
|
+
|
729
|
+
raise ArgumentError, "error message", ["file1:99",
|
730
|
+
"file2:999:in `method'"]
|
731
|
+
|
732
|
+
# => file1:99: error message (ArgumentError)
|
733
|
+
from file2:999:in `method'
|
734
|
+
|
735
|
+
�㳰�ǤϤʤ����饹�䥪�֥������Ȥ��������˻��ꤷ����硢�ºݤ�
|
736
|
+
ȯ�������㳰�Ϥ��Υ��֥������Ȥ� exception ��åɤ�
|
737
|
+
�֤��ͤˤʤ�ޤ���
|
738
|
+
|
739
|
+
class MyException
|
740
|
+
def exception
|
741
|
+
ArgumentError.new
|
742
|
+
end
|
743
|
+
end
|
744
|
+
|
745
|
+
raise MyException.new
|
746
|
+
|
747
|
+
# => -:7: ArgumentError (ArgumentError)
|
748
|
+
|
749
|
+
����η����ǰ�������ꤷ�����ϡ�exception ���
|
750
|
+
�ɤˤ��ΰ������Ϥ���ޤ���
|
751
|
+
|
752
|
+
class MyException
|
753
|
+
def exception(mesg)
|
754
|
+
ArgumentError.new(mesg)
|
755
|
+
end
|
756
|
+
end
|
757
|
+
|
758
|
+
raise MyException.new, "error message"
|
759
|
+
|
760
|
+
# => -:7: error message (ArgumentError)
|
761
|
+
|
762
|
+
exception ��åɤ�ɬ���㳰���֥������Ȥ��֤��ʤ���Ф���
|
763
|
+
�ޤ������Ǥʤ����� TypeError ��ȯ�����ޤ���
|
764
|
+
|
765
|
+
ȯ�������㳰���ѿ� $! �˳�Ǽ����ޤ����ޤ��㳰��
|
766
|
+
ȯ���������Υ����å��ȡ��쥹���ѿ� $@ �˳�Ǽ����
|
767
|
+
�ޤ���
|
768
|
+
|
769
|
+
--- rand([max=0])
|
770
|
+
|
771
|
+
0 �ʾ� max ̤�����ϰϤ������������ȯ�����ޤ�����
|
772
|
+
��srand ���ƤФ�Ƥ��ʤ���м�ưŪ��
|
773
|
+
srand ��ƤӽФ��ޤ���
|
774
|
+
|
775
|
+
max �� nil �ޤ��� 0 ����ꤹ��� 0 �ʾ� 1 ̤
|
776
|
+
���μ¿��� Float �������Ϳ���ޤ���
|
777
|
+
|
778
|
+
--- readlines([rs])
|
779
|
+
|
780
|
+
���ޥ�ɥ饤������Ȥ���Ϳ����줿�ե�����(�ʤ����ɸ������) ���
|
781
|
+
�ʤ�������Ū�ʥե�����(ARGF�������ɤ߹���ǡ�����
|
782
|
+
�ƹԤ����ǤȤ��Ƥ��������֤��ޤ���
|
783
|
+
|
784
|
+
�Ԥζ��ڤ�ϰ��� rs �ǻ��ꤷ��ʸ����ˤʤ�ޤ���rs ��
|
785
|
+
�ǥե�����ͤ��Ȥ߹����ѿ� $/ ���ͤǤ���
|
786
|
+
|
787
|
+
rs �� nil ����ꤹ��ȹԶ��ڤ�ʤ��Ȥߤʤ��ޤ���
|
788
|
+
��ʸ���� "" ����ꤹ���Ϣ³������Ԥ�Ԥζ��ڤ�Ȥߤʤ��ޤ�
|
789
|
+
(�ѥ饰��ե⡼��)��
|
790
|
+
|
791
|
+
--- require(feature)
|
792
|
+
|
793
|
+
Ruby �饤�֥�� feature ������ɥѥ� $: ��
|
794
|
+
����õ����Ʊ���饤�֥�꤬�ޤ������ɤ���Ƥ��ʤ��ä������������ɤ�
|
795
|
+
�ޤ���
|
796
|
+
|
797
|
+
Ruby �饤�֥��Ȥ� Ruby ������ץ� (*.rb) ����ĥ�饤�֥��
|
798
|
+
(*.so) �Ǥ��ꡢfeature �γ�ĥ�Ҥ���ά���줿���Ϥ���
|
799
|
+
ξ������õ���ޤ�(��������˴ؤ��Ƥ� $: �Ȥ���
|
800
|
+
��������)����ά����ʤ��ä����ϻ��ꤵ�줿���̤Τߤ�õ���ޤ�����
|
801
|
+
����ĥ�饤�֥��γ�ĥ�Ҥˤϥ������ƥ�����Ǽºݤ˻Ȥ����ĥ�Ҥ�
|
802
|
+
�ؤ餺��� .so ���Ѥ��ޤ���
|
803
|
+
|
804
|
+
�ºݤ˥饤�֥�������ɤ������ˤ� true�����˥����ɤ���Ƥ�
|
805
|
+
����ˤ� false ���֤��ޤ��������ɤ˼��Ԥ������ϡ��㳰
|
806
|
+
LoadError ��ȯ�����ޤ��������ɤ��� feature ��̾����(��
|
807
|
+
ĥ�Ҥ�ޤ��)���ѿ� $ ���ɲä��ޤ���
|
808
|
+
|
809
|
+
--- scan(re)
|
810
|
+
--- scan(re) {|matched| ... }
|
811
|
+
|
812
|
+
$_.scan ��Ʊ���Ǥ���
|
813
|
+
|
814
|
+
--- select(reads[, writes[, excepts[, timeout]]])
|
815
|
+
|
816
|
+
IO.select ��Ʊ���Ǥ���
|
817
|
+
|
818
|
+
--- set_trace_func(trace_proc)
|
819
|
+
|
820
|
+
Ruby ���ץ���ץ�������¹Ԥ�������ǡ���åɤθƤӽФ���
|
821
|
+
����ɾ���ʤɤΥ��٥�Ȥ�ȯ�������٤˼�³�����֥������� trace_proc
|
822
|
+
��¹Ԥ��ޤ���ɸ��ź�դΥǥХå� [debug.rb]���ȥ졼�� [tracer.rb]��
|
823
|
+
�ץ��ե����� [profile.rb]�Ϥ����Ȥ߹��ߴؿ������Ѥ��Ƽ¸�����Ƥ��ޤ���
|
824
|
+
|
825
|
+
��:
|
826
|
+
set_trace_func lambda {|event, file, line, id, binding, klass|
|
827
|
+
# ....
|
828
|
+
}
|
829
|
+
|
830
|
+
�֥��å������ΰ�̣�ϰʲ����̤�Ǥ���
|
831
|
+
|
832
|
+
: event
|
833
|
+
�¹ԤΥ����פ�ɽ�����ʲ��Τ����줫��ʸ����
|
834
|
+
* "line" ... ����ɾ����
|
835
|
+
* "call" ... ��åɤθƤӽФ���
|
836
|
+
* "return" ... ��åɸƤӽФ�����Υ����
|
837
|
+
* "c-call" ... C�ǵ��Ҥ��줿��åɤθƤӽФ���
|
838
|
+
* "c-return" ... C�ǵ��Ҥ��줿��åɸƤӽФ�����Υ����
|
839
|
+
* "class" ... ���饹������ðۥ��饹������⥸�塼������ؤ�������
|
840
|
+
* "end" ... ���饹������ðۥ��饹������⥸�塼������ν�λ��
|
841
|
+
* "raise" ... �㳰��ȯ����
|
842
|
+
|
843
|
+
: file
|
844
|
+
�¹���Υץ������Υ������ե�����̾ (ʸ����)��
|
845
|
+
|
846
|
+
: line
|
847
|
+
�¹���Υץ������Υ������ե������ι��ֹ� (����)��
|
848
|
+
|
849
|
+
: id
|
850
|
+
event �˱������ʲ��Τ�Τ��Ϥ���ޤ���
|
851
|
+
��ϻ�֥��å������� klass ���б����Ƥ��ޤ���
|
852
|
+
|
853
|
+
: line
|
854
|
+
�Ǹ�˸ƤӽФ��줿��åɤ�ɽ�� Symbol ���֥������ȡ�
|
855
|
+
�ȥåץ�٥�Ǥ� nil��
|
856
|
+
: call/return/c-call/c-return
|
857
|
+
�ƤӽФ��줿/������åɤ�ɽ�� Symbol ���֥������ȡ�
|
858
|
+
: class/end
|
859
|
+
nil��
|
860
|
+
: raise
|
861
|
+
�Ǹ�˸ƤӽФ��줿��åɤ�ɽ�� Symbol ���֥������ȡ�
|
862
|
+
�ȥåץ�٥�Ǥ� nil��
|
863
|
+
|
864
|
+
: binding
|
865
|
+
�¹���Υץ������Υ���ƥ����Ȥ�ɽ�� Binding ���֥������ȡ�
|
866
|
+
|
867
|
+
: klass
|
868
|
+
event �˱������ʲ��Τ�Τ��Ϥ���ޤ���
|
869
|
+
��֥ͥ��å������� id ���б����Ƥ��ޤ���
|
870
|
+
|
871
|
+
: line
|
872
|
+
�Ǹ�˸ƤӽФ��줿��åɤ�°���륯�饹��ɽ��
|
873
|
+
Class ���֥������ȡ��ȥåץ�٥�Ǥ�
|
874
|
+
false��
|
875
|
+
: call/return/c-call/c-return
|
876
|
+
�ƤӽФ��줿/������åɤ�°���륯�饹
|
877
|
+
��ɽ�� Class ���֥������ȡ�
|
878
|
+
: class/end
|
879
|
+
false��
|
880
|
+
: raise
|
881
|
+
�Ǹ�˸ƤӽФ��줿��åɤ�°���륯�饹��ɽ��
|
882
|
+
Class���֥������ȡ��ȥåץ�٥�Ǥ�
|
883
|
+
false��
|
884
|
+
|
885
|
+
--- sleep([sec])
|
886
|
+
|
887
|
+
sec �ä����ץ������μ¹Ԥ���ߤ��ޤ���sec
|
888
|
+
�ˤ���ư�������������Ǥ��ޤ���sec ����ά���줿��
|
889
|
+
�硢(SIGALRM �ޤ���¾����åɤ����
|
890
|
+
Thread#run [Thread/run]) �ʤɤ�����Ū�˵������ʤ��¤��
|
891
|
+
�פ˥���פ��ޤ�������ͤϼºݤ���ߤ��Ƥ����ÿ�(����)�Ǥ���
|
892
|
+
|
893
|
+
--- spawn(cmd, [arg, ...]) ruby 1.9 feature
|
894
|
+
|
895
|
+
�ҥץ������ν�λ���Ԥ���碌�ʤ����Ȥ�����С�system
|
896
|
+
��Ʊ���Ǥ������������ҥץ������Υץ�����ID���֤��ޤ���
|
897
|
+
|
898
|
+
--- split([sep[, limit]])
|
899
|
+
|
900
|
+
$_ �μ���ʸ�����ѥ����� sep �ˤ�ä�
|
901
|
+
limit �Ĥ�ʸ�����ʬ�䤷������������֤��ޤ����ܺ�
|
902
|
+
�� String#split [String/split] �Ȥ��Ƥ���������
|
903
|
+
|
904
|
+
--- sprintf(format ... )
|
905
|
+
--- format(format ... )
|
906
|
+
|
907
|
+
format ʸ����� C ����� sprintf ��Ʊ���褦
|
908
|
+
�˲�ᤷ��������ե����ޥåȤ���ʸ������֤��ޤ���
|
909
|
+
format ����Ҥ� C ����� sprintf �������դ�
|
910
|
+
���ΤȤۤȤ��Ʊ���Ǥ���
|
911
|
+
|
912
|
+
Ruby �ˤ��������礭���˾�¤��ʤ��Τǡ�%b, %o, %x
|
913
|
+
����ο���Ϳ�����(��¦��̵�¤�1��³���Ȥߤʤ���Τ�)
|
914
|
+
..f �Τ褦��ɽ���ޤ��������ͤ������դ�������
|
915
|
+
�ǽ��Ϥ��뤿��ˤ�%+x��% x�Τ褦�˻��ꤷ�ޤ���
|
916
|
+
|
917
|
+
�ܺ٤�sprintf�ե����ޥåȤȤ��Ƥ���������
|
918
|
+
|
919
|
+
--- srand([seed])
|
920
|
+
|
921
|
+
rand ������μ�����ꤷ���Ť�����ͤ��֤��ޤ�
|
922
|
+
(�������ǽ������0���֤��ޤ�)������ͤ���ά���줿���ˤϸ��ߤλ���
|
923
|
+
��ץ�����ID��srand ��ƤӽФ�������ʤɤ˼����ޤ���
|
924
|
+
|
925
|
+
ruby 1.8 feature:
|
926
|
+
1.8.3 ����ϡ�seed �Ȥ��� unsigned long �����礭���ͤ�Ϳ���뤳�Ȥ�����ޤ���
|
927
|
+
|
928
|
+
--- sub(pattern[, replace])
|
929
|
+
--- sub!(pattern[, replace])
|
930
|
+
--- sub(pattern) {|matched| ... }
|
931
|
+
--- sub!(pattern) {|matched| ... }
|
932
|
+
|
933
|
+
�Ȥ߹����ѿ� $_ �λؤ�ʸ������� pattern ��
|
934
|
+
�ޥå�����ǽ����ʬ�� replace ���֤�������ʸ������֤��ޤ���
|
935
|
+
���� replace ����ά���줿���ˤϥ��ƥ졼���Ȥ���ư����֥���
|
936
|
+
����ɾ��������̤��ִ���Ԥ��ޤ����֥��å��ˤϰ����Ȥ��ƥޥå�����
|
937
|
+
ʸ�����Ϥ���ޤ���
|
938
|
+
|
939
|
+
sub! �� $_ �λؤ��Ƥ���ʸ���Τ�Τ�����ޤ���
|
940
|
+
�ܺ٤ϡ�String#sub [String/sub] �Ȥ��Ƥ���������
|
941
|
+
String#sub �ȴؿ� sub �Ǥϰʲ������ǰ㤤������ޤ���
|
942
|
+
|
943
|
+
* sub��åɤ� $_ ���ͤԡ����ơ����ԡ�����������
|
944
|
+
$_ ��((*������*))���ޤ���
|
945
|
+
|
946
|
+
--- syscall(num, arg ... )
|
947
|
+
|
948
|
+
num�ǻ��ꤵ�줿�ֹ�Υ����ƥॳ�����¹Ԥ��ޤ���
|
949
|
+
��2�����ʹߤ��ƥॳ����ΰ����Ȥ����Ϥ��ޤ���������ʸ��
|
950
|
+
��ޤ��������Ǥʤ���Фʤ�ޤ���
|
951
|
+
|
952
|
+
�ɤο��ͤ��ɤΥ����ƥॳ������б����뤫�ϡ�
|
953
|
+
syscall(2) [manual page] ��
|
954
|
+
/usr/include/sys/syscall.h �Ȥ��Ƥ���������
|
955
|
+
|
956
|
+
�����ƥॳ����δ����˽�����syscall(2) [manual page]
|
957
|
+
�� -1 ���֤����ˤ��㳰 Errno::EXXX ��ȯ�����ޤ���
|
958
|
+
����ʳ��Ǥϡ��֤����ͤΤޤ��ͤ��֤��ޤ���
|
959
|
+
|
960
|
+
--- system(command)
|
961
|
+
--- system(program[, arg1[, arg2[, ...]]])
|
962
|
+
|
963
|
+
command ��¹Ԥ��ơ�����������(�ҥץ���������λ���ơ����� 0
|
964
|
+
�ǽ�λ������)�ˤϿ����Ԥ�����(���ޥ�ɤ��¹ԤǤ��ʤ��ä�����
|
965
|
+
�ޤ�)�ˤϵ����֤��ޤ�����λ���ơ��������ѿ� $? ��
|
966
|
+
���ȤǤ��ޤ���
|
967
|
+
|
968
|
+
���ޥ�ɤ�¹Ԥ��뤳�Ȥ��Ǥ��ʤ��ä���硢¿���Υ�����ϥ��ơ�����
|
969
|
+
127 ���֤��ޤ���(�������ä� $? �ο��ͤϡ�0x7f00)����������
|
970
|
+
���ʤ����� Ruby �λҥץ����������ơ����� 127 �ǽ�λ���ޤ�������
|
971
|
+
��ɤ��¹ԤǤ��ʤ��ä��Τ������ޥ�ɤ����Ԥ����Τ��ϡ�����
|
972
|
+
$? �Ȥ��뤳�Ȥ�Ƚ�̲�ǽ�Ǥ���
|
973
|
+
|
974
|
+
ruby 1.9 feature:
|
975
|
+
���ޥ�ɤ�¹ԤǤ��ʤ��Ȥ����㳰 Errno::EXXX ��ȯ�����ޤ���
|
976
|
+
�������𤹤���ϡ���Ҥ��̤�Ǥ���
|
977
|
+
|
978
|
+
����¾�ε�ư�˴ؤ��Ƥ� exec �Ȥ���
|
979
|
+
����������
|
980
|
+
|
981
|
+
`command` [�Ȥ߹��ߴؿ�/"`"], open �⻲�Ȥ��Ƥ���
|
982
|
+
������
|
983
|
+
|
984
|
+
--- test(cmd, file1 [, file2])
|
985
|
+
|
986
|
+
�ե�����ƥ��Ȥ�Ԥ��ޤ���cmd �ϰʲ��˼���
|
987
|
+
���ͥ�ƥ�뤫ʸ����Ǥ�(ʸ����ξ��Ϥ�
|
988
|
+
����Ƭ��ʸ�������ޥ�ɤȤߤʤ��ޤ�)��
|
989
|
+
|
990
|
+
* 1�Ĥΰ���������
|
991
|
+
|
992
|
+
* ?r
|
993
|
+
|
994
|
+
�ե������¸� uid ���ɤळ�Ȥ��Ǥ���
|
995
|
+
* ?w
|
996
|
+
|
997
|
+
�ե�����˼¸� uid �ǽ��Ȥ��Ǥ���
|
998
|
+
* ?x
|
999
|
+
|
1000
|
+
�ե������¸� uid �Ǽ¹Ԥ��뤳�Ȥ��Ǥ���
|
1001
|
+
* ?o
|
1002
|
+
|
1003
|
+
�ե�����ν�ͭ�Ԥ��¸� uid �Ǥ���
|
1004
|
+
* ?G
|
1005
|
+
|
1006
|
+
�ե�����Υ��롼��ͭ�Ԥ��¸� gid �Ǥ���
|
1007
|
+
* ?R
|
1008
|
+
|
1009
|
+
�ե������� uid ���ɤळ�Ȥ��Ǥ���
|
1010
|
+
* ?W
|
1011
|
+
|
1012
|
+
�ե�����˼� uid �ǽ��Ȥ��Ǥ���
|
1013
|
+
* ?X
|
1014
|
+
|
1015
|
+
�ե������� uid �Ǽ¹Ԥ��뤳�Ȥ��Ǥ���
|
1016
|
+
* ?O
|
1017
|
+
|
1018
|
+
�ե�����ν�ͭ�Ԥ��� uid �Ǥ���
|
1019
|
+
* ?e
|
1020
|
+
|
1021
|
+
�ե����뤬¸�ߤ���
|
1022
|
+
* ?z
|
1023
|
+
|
1024
|
+
�ե����륵������ 0 �Ǥ���
|
1025
|
+
* ?s
|
1026
|
+
|
1027
|
+
�ե����륵������ 0 �Ǥʤ�(�ե����륵�������֤�)
|
1028
|
+
* ?f
|
1029
|
+
|
1030
|
+
�ե�����ϥץ졼��ե�����Ǥ���
|
1031
|
+
* ?d
|
1032
|
+
|
1033
|
+
�ե�����ϥǥ��쥯�ȥ�Ǥ���
|
1034
|
+
* ?l
|
1035
|
+
|
1036
|
+
�ե�����ϥ���ܥ�å���Ǥ���
|
1037
|
+
* ?p
|
1038
|
+
|
1039
|
+
�ե������̾���Ĥ��ѥ���(FIFO)�Ǥ���
|
1040
|
+
* ?S
|
1041
|
+
|
1042
|
+
�ե�����ϥ����åȤǤ���
|
1043
|
+
* ?b
|
1044
|
+
|
1045
|
+
�ե�����ϥ֥��å��ü�ե�����Ǥ���
|
1046
|
+
* ?c
|
1047
|
+
|
1048
|
+
�ե�����ϥ���饯�����ü�ե�����Ǥ���
|
1049
|
+
* ?u
|
1050
|
+
|
1051
|
+
�ե������ setuid �ӥåȤ����åȤ���Ƥ���
|
1052
|
+
* ?g
|
1053
|
+
|
1054
|
+
�ե������ setgid �ӥåȤ����åȤ���Ƥ���
|
1055
|
+
* ?k
|
1056
|
+
|
1057
|
+
�ե������ sticky �ӥåȤ����åȤ���Ƥ���
|
1058
|
+
|
1059
|
+
* ?M
|
1060
|
+
|
1061
|
+
�ե�����κǽ�����������֤�
|
1062
|
+
* ?A
|
1063
|
+
|
1064
|
+
�ե�����κǽ���������������֤�
|
1065
|
+
* ?C
|
1066
|
+
|
1067
|
+
�ե������ inode �ѹ�������֤�
|
1068
|
+
|
1069
|
+
* 2�Ĥΰ���������
|
1070
|
+
|
1071
|
+
* ?=
|
1072
|
+
|
1073
|
+
�ե�����1�ȥե�����2�κǽ��������郎������
|
1074
|
+
* ?>
|
1075
|
+
|
1076
|
+
�ե�����1�������ե�����2���ǽ��������郎������
|
1077
|
+
* ?<
|
1078
|
+
|
1079
|
+
�ե�����1�������ե�����2���ǽ��������郎�Ť�
|
1080
|
+
* ?-
|
1081
|
+
|
1082
|
+
�ե�����1���ե�����2�˥ϡ��ɥ����Ƥ���
|
1083
|
+
|
1084
|
+
--- throw(tag[, value=nil])
|
1085
|
+
|
1086
|
+
Ʊ�� tag ����ꤷ�� catch �Υ֥��å���
|
1087
|
+
�����ޤ�(��åɤ�ۤ���)æ�Ф��ޤ����⤷Ʊ�� tag ��
|
1088
|
+
�ԤäƤ��� catch ��¸�ߤ��ʤ����� NameError ��
|
1089
|
+
����åɤ���λ���ޤ���tag ��ʸ����ޤ��ϥ���ܥ�Ǥ���
|
1090
|
+
value �� catch ������ͤˤʤ�ޤ���
|
1091
|
+
|
1092
|
+
��:
|
1093
|
+
|
1094
|
+
ret = catch(:exit) {
|
1095
|
+
throw :exit, 25
|
1096
|
+
some_process() # ���Ф˼¹Ԥ���ʤ�
|
1097
|
+
10
|
1098
|
+
}
|
1099
|
+
p ret #=> 25
|
1100
|
+
|
1101
|
+
--- trace_var(varname, hook)
|
1102
|
+
--- trace_var(varname) {|newval| .... }
|
1103
|
+
|
1104
|
+
�������Х��ѿ� varname �ؤ������Υեå�����Ͽ���ޤ���
|
1105
|
+
varname ��ʸ���� Symbol �ǻ��ꤷ�ޤ���
|
1106
|
+
|
1107
|
+
�����ǤΡ֥������Х��ѿ��פϡ��ü��ѿ� [�Ȥ߹����ѿ�]��ޤ`$'
|
1108
|
+
�ǻϤޤ��ѿ��Τ��ȤǤ���
|
1109
|
+
|
1110
|
+
���θƤӽФ��ʹߡ�varname �ǻ��ꤷ���������Х��ѿ���
|
1111
|
+
�������������ʸ����ޤ��� Proc ���֥������� hook
|
1112
|
+
��ɾ������ޤ����եå��� Proc ���֥������Ȥʤ�
|
1113
|
+
�֥��å��������������줿�ͤ��Ϥ���ޤ����ޤ��եå���ʣ��
|
1114
|
+
��Ͽ�Ǥ��ޤ���
|
1115
|
+
|
1116
|
+
�ȥ졼����������ˤϡ�hook �� nil ��
|
1117
|
+
���ꤹ�뤫��untrace_var ���Ѥ��ޤ���
|
1118
|
+
|
1119
|
+
��:
|
1120
|
+
trace_var(:$v) {|val| puts "$v=#{val.inspect}" }
|
1121
|
+
$v = "foo" #=> $v="foo"
|
1122
|
+
$v = 1 #=> $v=1
|
1123
|
+
|
1124
|
+
hook �� nil �ʤ�С����ꤵ��Ƥ���
|
1125
|
+
hook ��������֤��ޤ�(�֥��å�����Ͽ����Ƥ����
|
1126
|
+
Proc ���֥������Ȥ��֤���ޤ�)
|
1127
|
+
����ʳ��ϡ�nil ���֤��ޤ���
|
1128
|
+
|
1129
|
+
--- trap(signal, command)
|
1130
|
+
--- trap(signal) { ... }
|
1131
|
+
|
1132
|
+
�� Ruby 1.8 �ʹߤǤ� Signal.trap ��侩���ޤ���
|
1133
|
+
|
1134
|
+
signal �ǻ��ꤵ�줿�����ߤˤ�������ϥ�ɥ�Ȥ���
|
1135
|
+
command ����Ͽ���ޤ���signal �ϥ����ʥ�̾��
|
1136
|
+
ʸ���� Symbol���ޤ��ϥ����ʥ��ֹ�ǻ��ꤷ�ޤ���
|
1137
|
+
|
1138
|
+
command ��ʸ����ޤ��ϥ֥��å��ǻ��ꤷ�ޤ���
|
1139
|
+
nil����ʸ����""��"SIG_IGN" �ޤ���
|
1140
|
+
"IGNORE" ����ꤷ�����ϡ����Υ����ʥ��̵�뤷�ޤ�
|
1141
|
+
(��ǽ�ʤ��)��
|
1142
|
+
"SIG_DFL" �ޤ��� "DEFAULT" ����ꤷ�����ϡ�
|
1143
|
+
�ǥե���Ȥ�ư���Ԥʤ��褦�ˤʤ�ޤ���
|
1144
|
+
"EXIT"����ꤷ�����ϡ������ʥ��������Ƚ�λ������
|
1145
|
+
�Ԥä����ȥ��ơ����� 0 �ǽ�λ���ޤ���
|
1146
|
+
|
1147
|
+
�ޤ� signal �����̤��ͤȤ��� 0 �ޤ��� "EXIT"
|
1148
|
+
�����Ǥ��ޤ�������ϡ֥ץ������ν�λ���פ�ɽ���ޤ���
|
1149
|
+
|
1150
|
+
�����Ĥ��Υ����ʥ���Ф��ơ�Ruby ���ץ���㳰 Interrupt ��
|
1151
|
+
SignalException ��ȯ�������ޤ������Τ褦�ʥ����ʥ���㳰�����ˤ��
|
1152
|
+
����ª���뤳�Ȥ�Ǥ��ޤ���
|
1153
|
+
|
1154
|
+
begin
|
1155
|
+
Process.kill :QUIT, $$ # ���Ȥ�SIGQUIT������
|
1156
|
+
rescue SignalException
|
1157
|
+
puts "rescue #$!"
|
1158
|
+
end
|
1159
|
+
# => rescue SIGQUIT
|
1160
|
+
|
1161
|
+
trap() �ˤ����ª���줿�����ʥ���㳰��ȯ�������ޤ���
|
1162
|
+
|
1163
|
+
trap �ϴ��˥����ʥ���б����� command ����Ͽ�����
|
1164
|
+
����С�������֤��ޤ�(�֥��å��� Proc ���֥�����
|
1165
|
+
�ȤȤ����֤���ޤ���"IGNORE" �� "DEFAULT" ���Ф��Ƥ�
|
1166
|
+
nil ���֤��ޤ�)��������Ͽ����Ƥ��ʤ����
|
1167
|
+
nil ���֤��ޤ���
|
1168
|
+
|
1169
|
+
ruby 1.8 feature:
|
1170
|
+
trap �¹����ˡ�"IGNORE" �� "DEFAULT" ����Ͽ����Ƥ����ʤ顢
|
1171
|
+
"IGNORE"��"DEFAULT" ���֤��ޤ���ruby ���ץ���Τ����ʤ�
|
1172
|
+
�����ʥ�ϥ�ɥ餬��Ͽ����Ƥ������� nil ���֤��ޤ���
|
1173
|
+
|
1174
|
+
p trap(:INT, "p true") # => nil
|
1175
|
+
p trap(:INT) { } # => "p true"
|
1176
|
+
p trap(:INT, "SIG_IGN") # => #<Proc:0x401b1328>
|
1177
|
+
p trap(:INT, "DEFAULT") # => nil
|
1178
|
+
p trap(:INT, "EXIT") # => nil
|
1179
|
+
p trap(:INT, nil) # => "EXIT"
|
1180
|
+
|
1181
|
+
¸�ߤ��ʤ������ʥ����ꤷ�����ϡ��㳰 ArgumentError ��ȯ
|
1182
|
+
�����ޤ�
|
1183
|
+
|
1184
|
+
--- untrace_var(varname[, hook])
|
1185
|
+
|
1186
|
+
�������Х��ѿ� varname �˴�Ϣ�դ���줿�եå���
|
1187
|
+
������ޤ���hook �����ꤵ�줿���ˤϤ��Υեå�������
|
1188
|
+
������ޤ���hook ����ά����뤫�ޤ��� nil ��
|
1189
|
+
Ϳ�������� varname �Υեå������Ʋ�����ޤ���
|
1190
|
+
������줿�եå���������֤��ޤ���
|
1191
|
+
|
1192
|
+
��:
|
1193
|
+
|
1194
|
+
$v = nil
|
1195
|
+
trace_var(:$v) {|val| puts "$v=#{val.inspect}" }
|
1196
|
+
$v = 'str' #=> $v="str"
|
1197
|
+
untrace_var :$v
|
1198
|
+
$v = 'str' # �ʤˤ���Ϥ���ʤ�
|
1199
|
+
|
1200
|
+
--- warn(mesg)
|
1201
|
+
|
1202
|
+
ruby 1.8 feature
|
1203
|
+
|
1204
|
+
mesg �Ȳ��Ԥ���֤� $stderr �˽��Ϥ��ޤ���
|
1205
|
+
�Ȥ߹����ѿ� $VERBOSE �� nil �ΤȤ��ϲ���
|
1206
|
+
���Ϥ��ޤ���
|
1207
|
+
|
1208
|
+
$stderr.print mesg, "\n" unless $VERBOSE.nil?
|
1209
|
+
|
1210
|
+
��Ʊ���Ǥ���nil ���֤��ޤ���
|