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.
Files changed (1424) hide show
  1. data/ChangeLog.gems +14 -0
  2. data/data/refe/class_document/-open-s-s-l%3a%3a-cipher%3a%3a-cipher +4 -2
  3. data/data/refe/class_document/-re-fe +3 -0
  4. data/data/refe/class_document/-struct%3a%3a-x-x-x +0 -0
  5. data/data/refe/class_document_comp +1 -0
  6. data/data/refe/function_source/-init/-array +1 -1
  7. data/data/refe/function_source/-init/-bignum +1 -1
  8. data/data/refe/function_source/-init/-binding +1 -1
  9. data/data/refe/function_source/-init/-file +3 -1
  10. data/data/refe/function_source/-init/-g-c +2 -2
  11. data/data/refe/function_source/-init/-i-o +7 -8
  12. data/data/refe/function_source/-init/-numeric +1 -1
  13. data/data/refe/function_source/-init/-object +4 -4
  14. data/data/refe/function_source/-init/-proc +3 -3
  15. data/data/refe/function_source/-init/-regexp +1 -1
  16. data/data/refe/function_source/-init/-thread +2 -2
  17. data/data/refe/function_source/-init/eval +3 -3
  18. data/data/refe/function_source/-init/heap +1 -1
  19. data/data/refe/function_source/-init/load +4 -4
  20. data/data/refe/function_source/-init/process +1 -1
  21. data/data/refe/function_source/-init/stack +1 -1
  22. data/data/refe/function_source/-init/sym +1 -1
  23. data/data/refe/function_source/add/final +1 -1
  24. data/data/refe/function_source/appendline +1 -1
  25. data/data/refe/function_source/apply2files +3 -2
  26. data/data/refe/function_source/arg/add +1 -1
  27. data/data/refe/function_source/arg/ambiguous +1 -1
  28. data/data/refe/function_source/arg/blk/pass +1 -1
  29. data/data/refe/function_source/arg/concat +1 -1
  30. data/data/refe/function_source/arg/prepend +1 -1
  31. data/data/refe/function_source/argf/binmode +1 -1
  32. data/data/refe/function_source/argf/close/- +1 -1
  33. data/data/refe/function_source/argf/close/m +1 -1
  34. data/data/refe/function_source/argf/closed +1 -1
  35. data/data/refe/function_source/argf/each/byte +1 -1
  36. data/data/refe/function_source/argf/each/line +1 -1
  37. data/data/refe/function_source/argf/eof +1 -1
  38. data/data/refe/function_source/argf/file +1 -1
  39. data/data/refe/function_source/argf/filename +1 -1
  40. data/data/refe/function_source/argf/fileno +1 -1
  41. data/data/refe/function_source/argf/forward +1 -1
  42. data/data/refe/function_source/argf/getc +1 -1
  43. data/data/refe/function_source/argf/getline +1 -1
  44. data/data/refe/function_source/argf/lineno +1 -1
  45. data/data/refe/function_source/argf/read +1 -1
  46. data/data/refe/function_source/argf/readchar +1 -1
  47. data/data/refe/function_source/argf/rewind +1 -1
  48. data/data/refe/function_source/argf/seek/m +1 -1
  49. data/data/refe/function_source/argf/set/lineno +1 -1
  50. data/data/refe/function_source/argf/set/pos +1 -1
  51. data/data/refe/function_source/argf/skip +1 -1
  52. data/data/refe/function_source/argf/tell +1 -1
  53. data/data/refe/function_source/argf/to/io +1 -1
  54. data/data/refe/function_source/argf/to/s +1 -1
  55. data/data/refe/function_source/ary/make/hash +1 -1
  56. data/data/refe/function_source/ary/sort/check +1 -1
  57. data/data/refe/function_source/aryset +1 -1
  58. data/data/refe/function_source/asc/startpos +1 -1
  59. data/data/refe/function_source/assign/- +1 -1
  60. data/data/refe/function_source/assign/in/cond +1 -1
  61. data/data/refe/function_source/assignable +1 -1
  62. data/data/refe/function_source/attrset +1 -1
  63. data/data/refe/function_source/autoload/delete +1 -1
  64. data/data/refe/function_source/autoload/file +1 -1
  65. data/data/refe/function_source/avalue/splat +1 -1
  66. data/data/refe/function_source/avalue/to/svalue +1 -1
  67. data/data/refe/function_source/backtrace +1 -1
  68. data/data/refe/function_source/be/chown +12 -0
  69. data/data/refe/function_source/be/fchown +12 -0
  70. data/data/refe/function_source/bignew/1 +1 -1
  71. data/data/refe/function_source/bigsub +1 -1
  72. data/data/refe/function_source/blk/copy/prev +1 -1
  73. data/data/refe/function_source/blk/dup +1 -1
  74. data/data/refe/function_source/blk/free +1 -1
  75. data/data/refe/function_source/blk/mark +1 -1
  76. data/data/refe/function_source/block/append +1 -1
  77. data/data/refe/function_source/block/orphan +1 -1
  78. data/data/refe/function_source/block/pass +1 -1
  79. data/data/refe/function_source/bm/init/skip +1 -1
  80. data/data/refe/function_source/bm/mark +1 -1
  81. data/data/refe/function_source/bm/search +1 -1
  82. data/data/refe/function_source/bmcall +5 -2
  83. data/data/refe/function_source/boot/defclass +1 -1
  84. data/data/refe/function_source/break/jump +1 -1
  85. data/data/refe/function_source/call/cfunc +1 -1
  86. data/data/refe/function_source/call/end/proc +1 -1
  87. data/data/refe/function_source/call/final +1 -1
  88. data/data/refe/function_source/call/op +1 -1
  89. data/data/refe/function_source/call/trace/func +2 -2
  90. data/data/refe/function_source/catch/i +1 -1
  91. data/data/refe/function_source/catch/timer +1 -1
  92. data/data/refe/function_source/check/autoload/table +1 -1
  93. data/data/refe/function_source/check/gid/switch +1 -1
  94. data/data/refe/function_source/check/int +1 -1
  95. data/data/refe/function_source/check/uid/switch +1 -1
  96. data/data/refe/function_source/check/uint +1 -1
  97. data/data/refe/function_source/check3rdbyte +1 -1
  98. data/data/refe/function_source/chmod/internal +4 -3
  99. data/data/refe/function_source/chown/internal +5 -3
  100. data/data/refe/function_source/class/instance/method/list +1 -1
  101. data/data/refe/function_source/class/prefix +1 -1
  102. data/data/refe/function_source/compile/- +1 -1
  103. data/data/refe/function_source/cond/- +1 -1
  104. data/data/refe/function_source/cond/negative +1 -1
  105. data/data/refe/function_source/cond0 +1 -1
  106. data/data/refe/function_source/const/missing +1 -1
  107. data/data/refe/function_source/conv/to/posix/path +1 -0
  108. data/data/refe/function_source/convert/type +1 -1
  109. data/data/refe/function_source/copy/fds +1 -1
  110. data/data/refe/function_source/cv/i +1 -1
  111. data/data/refe/function_source/cvar/override/check +1 -1
  112. data/data/refe/function_source/deferr/setter +1 -1
  113. data/data/refe/function_source/define/filetest/function +1 -1
  114. data/data/refe/function_source/define/final +1 -1
  115. data/data/refe/function_source/defout/setter +1 -1
  116. data/data/refe/function_source/delete/never +1 -1
  117. data/data/refe/function_source/dispose/string +2 -2
  118. data/data/refe/function_source/dln/find/1 +1 -1
  119. data/data/refe/function_source/dyna/in/block +1 -1
  120. data/data/refe/function_source/dyna/init +1 -1
  121. data/data/refe/function_source/dyna/pop +1 -1
  122. data/data/refe/function_source/dyna/push +1 -1
  123. data/data/refe/function_source/e/option/supplied +1 -1
  124. data/data/refe/function_source/eaccess +1 -1
  125. data/data/refe/function_source/errat/getter +1 -1
  126. data/data/refe/function_source/errat/setter +1 -1
  127. data/data/refe/function_source/errinfo/setter +1 -1
  128. data/data/refe/function_source/euc/startpos +1 -1
  129. data/data/refe/function_source/ev/const/get +1 -1
  130. data/data/refe/function_source/eval/- +1 -1
  131. data/data/refe/function_source/eval/under/- +1 -1
  132. data/data/refe/function_source/eval/under/i +6 -1
  133. data/data/refe/function_source/evstr2dstr +1 -1
  134. data/data/refe/function_source/exec/under +8 -6
  135. data/data/refe/function_source/false/and +1 -1
  136. data/data/refe/function_source/false/or +1 -1
  137. data/data/refe/function_source/false/to/s +1 -1
  138. data/data/refe/function_source/false/xor +1 -1
  139. data/data/refe/function_source/file/expand/path +1 -1
  140. data/data/refe/function_source/file/inspect/join +1 -1
  141. data/data/refe/function_source/file/load/ok +1 -1
  142. data/data/refe/function_source/finalize/list +1 -1
  143. data/data/refe/function_source/finals +1 -1
  144. data/data/refe/function_source/find/bad/fds +1 -1
  145. data/data/refe/function_source/fix/abs +1 -1
  146. data/data/refe/function_source/fix/and +1 -1
  147. data/data/refe/function_source/fix/aref +1 -1
  148. data/data/refe/function_source/fix/cmp +1 -1
  149. data/data/refe/function_source/fix/div +1 -1
  150. data/data/refe/function_source/fix/divmod +1 -1
  151. data/data/refe/function_source/fix/equal +1 -1
  152. data/data/refe/function_source/fix/ge +1 -1
  153. data/data/refe/function_source/fix/gt +1 -1
  154. data/data/refe/function_source/fix/id2name +1 -1
  155. data/data/refe/function_source/fix/le +1 -1
  156. data/data/refe/function_source/fix/lshift +1 -1
  157. data/data/refe/function_source/fix/lt +1 -1
  158. data/data/refe/function_source/fix/minus +1 -1
  159. data/data/refe/function_source/fix/mod +1 -1
  160. data/data/refe/function_source/fix/mul +1 -1
  161. data/data/refe/function_source/fix/or +1 -1
  162. data/data/refe/function_source/fix/plus +1 -1
  163. data/data/refe/function_source/fix/pow +1 -1
  164. data/data/refe/function_source/fix/quo +1 -1
  165. data/data/refe/function_source/fix/rev +1 -1
  166. data/data/refe/function_source/fix/rshift +1 -1
  167. data/data/refe/function_source/fix/size +1 -1
  168. data/data/refe/function_source/fix/to/f +1 -1
  169. data/data/refe/function_source/fix/to/s +1 -1
  170. data/data/refe/function_source/fix/to/sym +1 -1
  171. data/data/refe/function_source/fix/uminus +1 -1
  172. data/data/refe/function_source/fix/xor +1 -1
  173. data/data/refe/function_source/fix/zero/p +1 -1
  174. data/data/refe/function_source/fixdivmod +1 -1
  175. data/data/refe/function_source/fixpos +1 -1
  176. data/data/refe/function_source/flatten +1 -1
  177. data/data/refe/function_source/flo/abs +1 -1
  178. data/data/refe/function_source/flo/ceil +1 -1
  179. data/data/refe/function_source/flo/cmp +1 -1
  180. data/data/refe/function_source/flo/coerce +1 -1
  181. data/data/refe/function_source/flo/div +1 -1
  182. data/data/refe/function_source/flo/divmod +1 -1
  183. data/data/refe/function_source/flo/eq +1 -1
  184. data/data/refe/function_source/flo/eql +1 -1
  185. data/data/refe/function_source/flo/floor +1 -1
  186. data/data/refe/function_source/flo/ge +1 -1
  187. data/data/refe/function_source/flo/gt +1 -1
  188. data/data/refe/function_source/flo/hash +1 -1
  189. data/data/refe/function_source/flo/is/finite/p +1 -1
  190. data/data/refe/function_source/flo/is/infinite/p +1 -1
  191. data/data/refe/function_source/flo/is/nan/p +1 -1
  192. data/data/refe/function_source/flo/le +1 -1
  193. data/data/refe/function_source/flo/lt +1 -1
  194. data/data/refe/function_source/flo/minus +1 -1
  195. data/data/refe/function_source/flo/mod +1 -1
  196. data/data/refe/function_source/flo/mul +1 -1
  197. data/data/refe/function_source/flo/plus +1 -1
  198. data/data/refe/function_source/flo/pow +1 -1
  199. data/data/refe/function_source/flo/round +1 -1
  200. data/data/refe/function_source/flo/to/f +1 -1
  201. data/data/refe/function_source/flo/to/s +1 -1
  202. data/data/refe/function_source/flo/truncate +1 -1
  203. data/data/refe/function_source/flo/uminus +1 -1
  204. data/data/refe/function_source/flo/zero/p +1 -1
  205. data/data/refe/function_source/flodivmod +1 -1
  206. data/data/refe/function_source/flush/before/seek +1 -1
  207. data/data/refe/function_source/flush/register/windows +1 -1
  208. data/data/refe/function_source/fmt/setup +1 -1
  209. data/data/refe/function_source/fpath/check +1 -1
  210. data/data/refe/function_source/fptr/finalize +1 -1
  211. data/data/refe/function_source/frame/dup +1 -1
  212. data/data/refe/function_source/frame/free +1 -1
  213. data/data/refe/function_source/free/unused/heaps +1 -1
  214. data/data/refe/function_source/garbage/collect +1 -1
  215. data/data/refe/function_source/gc/mark/children +0 -2
  216. data/data/refe/function_source/gc/sweep +4 -2
  217. data/data/refe/function_source/generic/ivar/defined +1 -1
  218. data/data/refe/function_source/generic/ivar/get +1 -1
  219. data/data/refe/function_source/generic/ivar/remove +1 -1
  220. data/data/refe/function_source/generic/ivar/set +1 -1
  221. data/data/refe/function_source/get/event/name +1 -1
  222. data/data/refe/function_source/get/inspect/tbl +1 -1
  223. data/data/refe/function_source/get/stat +1 -1
  224. data/data/refe/function_source/getcwdofdrv +1 -1
  225. data/data/refe/function_source/gettable +1 -1
  226. data/data/refe/function_source/givar/i +1 -1
  227. data/data/refe/function_source/givar/mark/i +1 -1
  228. data/data/refe/function_source/global/id +1 -1
  229. data/data/refe/function_source/group/member +1 -1
  230. data/data/refe/function_source/gvar/i +1 -1
  231. data/data/refe/function_source/handle/rescue +1 -1
  232. data/data/refe/function_source/has/drive/letter +1 -1
  233. data/data/refe/function_source/here/document +1 -1
  234. data/data/refe/function_source/heredoc/identifier +1 -1
  235. data/data/refe/function_source/heredoc/restore +1 -1
  236. data/data/refe/function_source/id2ref +1 -1
  237. data/data/refe/function_source/ignorecase/getter +1 -1
  238. data/data/refe/function_source/ignorecase/setter +1 -1
  239. data/data/refe/function_source/include/class/new +1 -1
  240. data/data/refe/function_source/init/regs +1 -1
  241. data/data/refe/function_source/ins/methods/i +1 -1
  242. data/data/refe/function_source/ins/methods/priv/i +1 -1
  243. data/data/refe/function_source/ins/methods/prot/i +1 -1
  244. data/data/refe/function_source/ins/methods/pub/i +1 -1
  245. data/data/refe/function_source/ins/methods/push +1 -1
  246. data/data/refe/function_source/insert/jump/- +1 -1
  247. data/data/refe/function_source/insert/jump/n +1 -1
  248. data/data/refe/function_source/insert/op/- +1 -1
  249. data/data/refe/function_source/insert/op/2 +1 -1
  250. data/data/refe/function_source/inspect/ary +1 -1
  251. data/data/refe/function_source/inspect/call +1 -1
  252. data/data/refe/function_source/inspect/ensure +1 -1
  253. data/data/refe/function_source/inspect/i +1 -1
  254. data/data/refe/function_source/inspect/join +1 -1
  255. data/data/refe/function_source/inspect/obj +1 -1
  256. data/data/refe/function_source/int/chr +1 -1
  257. data/data/refe/function_source/int/dotimes +1 -1
  258. data/data/refe/function_source/int/downto +1 -1
  259. data/data/refe/function_source/int/int/p +1 -1
  260. data/data/refe/function_source/int/succ +1 -1
  261. data/data/refe/function_source/int/to/i +1 -1
  262. data/data/refe/function_source/int/upto +1 -1
  263. data/data/refe/function_source/internal/id +1 -1
  264. data/data/refe/function_source/intersect/fds +1 -1
  265. data/data/refe/function_source/io/alloc +1 -1
  266. data/data/refe/function_source/io/close +1 -1
  267. data/data/refe/function_source/io/cntl +1 -1
  268. data/data/refe/function_source/io/fflush +1 -1
  269. data/data/refe/function_source/io/fread +1 -1
  270. data/data/refe/function_source/io/fwrite +1 -1
  271. data/data/refe/function_source/io/getpartial +1 -1
  272. data/data/refe/function_source/io/new/instance +1 -1
  273. data/data/refe/function_source/io/puts/ary +1 -1
  274. data/data/refe/function_source/io/read +1 -1
  275. data/data/refe/function_source/io/readpartial +1 -1
  276. data/data/refe/function_source/io/reopen +1 -1
  277. data/data/refe/function_source/io/s/foreach +1 -1
  278. data/data/refe/function_source/io/s/read +1 -1
  279. data/data/refe/function_source/io/s/readlines +1 -1
  280. data/data/refe/function_source/io/write +1 -1
  281. data/data/refe/function_source/is/absolute/path +1 -1
  282. data/data/refe/function_source/is/macos/native/path +1 -1
  283. data/data/refe/function_source/is/special/global/name +23 -0
  284. data/data/refe/function_source/ivar/get +1 -1
  285. data/data/refe/function_source/ivar/i +1 -1
  286. data/data/refe/function_source/kcode/getter +1 -1
  287. data/data/refe/function_source/kcode/setter +1 -1
  288. data/data/refe/function_source/last/match/getter +1 -1
  289. data/data/refe/function_source/last/paren/match/getter +1 -1
  290. data/data/refe/function_source/lchmod/internal +4 -3
  291. data/data/refe/function_source/lchown/internal +5 -3
  292. data/data/refe/function_source/lex/get/str +1 -1
  293. data/data/refe/function_source/lex/getline +1 -1
  294. data/data/refe/function_source/lineno/setter +1 -1
  295. data/data/refe/function_source/list/append +1 -1
  296. data/data/refe/function_source/list/concat +1 -1
  297. data/data/refe/function_source/list/i +1 -1
  298. data/data/refe/function_source/literal/concat +1 -1
  299. data/data/refe/function_source/literal/node +1 -1
  300. data/data/refe/function_source/load/failed +1 -1
  301. data/data/refe/function_source/load/wait +6 -6
  302. data/data/refe/function_source/local/append +1 -1
  303. data/data/refe/function_source/local/cnt +1 -1
  304. data/data/refe/function_source/local/id +1 -1
  305. data/data/refe/function_source/local/pop +3 -3
  306. data/data/refe/function_source/local/push +1 -1
  307. data/data/refe/function_source/local/tbl +1 -1
  308. data/data/refe/function_source/logop +1 -1
  309. data/data/refe/function_source/main/to/s +1 -1
  310. data/data/refe/function_source/make/backtrace +1 -1
  311. data/data/refe/function_source/mark/frame/adj +1 -1
  312. data/data/refe/function_source/mark/hash +1 -1
  313. data/data/refe/function_source/mark/tbl +1 -1
  314. data/data/refe/function_source/massign +1 -1
  315. data/data/refe/function_source/match/aref +1 -1
  316. data/data/refe/function_source/match/array +1 -1
  317. data/data/refe/function_source/match/begin +1 -1
  318. data/data/refe/function_source/match/captures +1 -1
  319. data/data/refe/function_source/match/end +1 -1
  320. data/data/refe/function_source/match/entry +1 -1
  321. data/data/refe/function_source/match/fds +1 -1
  322. data/data/refe/function_source/match/gen +1 -1
  323. data/data/refe/function_source/match/getter +1 -1
  324. data/data/refe/function_source/match/init/copy +1 -1
  325. data/data/refe/function_source/match/offset +1 -1
  326. data/data/refe/function_source/match/select +1 -1
  327. data/data/refe/function_source/match/setter +1 -1
  328. data/data/refe/function_source/match/size +1 -1
  329. data/data/refe/function_source/match/string +1 -1
  330. data/data/refe/function_source/match/to/a +1 -1
  331. data/data/refe/function_source/match/to/s +1 -1
  332. data/data/refe/function_source/match/values/at +1 -1
  333. data/data/refe/function_source/memcmp/translate +1 -1
  334. data/data/refe/function_source/method/arity +1 -1
  335. data/data/refe/function_source/method/call +1 -1
  336. data/data/refe/function_source/method/clone +1 -1
  337. data/data/refe/function_source/method/entry +1 -1
  338. data/data/refe/function_source/method/eq +1 -1
  339. data/data/refe/function_source/method/inspect +1 -1
  340. data/data/refe/function_source/method/missing +1 -1
  341. data/data/refe/function_source/method/proc +1 -1
  342. data/data/refe/function_source/method/unbind +1 -1
  343. data/data/refe/function_source/mnew +1 -1
  344. data/data/refe/function_source/mod/av/set +1 -1
  345. data/data/refe/function_source/module/setup +1 -1
  346. data/data/refe/function_source/mproc +1 -1
  347. data/data/refe/function_source/must/respond/to +1 -1
  348. data/data/refe/function_source/negate/lit +1 -1
  349. data/data/refe/function_source/new/call +1 -1
  350. data/data/refe/function_source/new/evstr +1 -1
  351. data/data/refe/function_source/new/fcall +1 -1
  352. data/data/refe/function_source/new/size +1 -1
  353. data/data/refe/function_source/new/super +1 -1
  354. data/data/refe/function_source/new/yield +1 -1
  355. data/data/refe/function_source/newline/node +1 -1
  356. data/data/refe/function_source/newtok +1 -1
  357. data/data/refe/function_source/next/argv +1 -1
  358. data/data/refe/function_source/nextc +1 -1
  359. data/data/refe/function_source/nil/inspect +1 -1
  360. data/data/refe/function_source/nil/plus +1 -1
  361. data/data/refe/function_source/nil/to/a +1 -1
  362. data/data/refe/function_source/nil/to/f +1 -1
  363. data/data/refe/function_source/nil/to/i +1 -1
  364. data/data/refe/function_source/nil/to/s +1 -1
  365. data/data/refe/function_source/no/blockarg +1 -1
  366. data/data/refe/function_source/node/assign +1 -1
  367. data/data/refe/function_source/nodeline +1 -1
  368. data/data/refe/function_source/nodetype +1 -1
  369. data/data/refe/function_source/num/abs +1 -1
  370. data/data/refe/function_source/num/ceil +1 -1
  371. data/data/refe/function_source/num/cmp +1 -1
  372. data/data/refe/function_source/num/div +1 -1
  373. data/data/refe/function_source/num/divmod +1 -1
  374. data/data/refe/function_source/num/eql +1 -1
  375. data/data/refe/function_source/num/equal +1 -1
  376. data/data/refe/function_source/num/floor +1 -1
  377. data/data/refe/function_source/num/init/copy +1 -1
  378. data/data/refe/function_source/num/int/p +1 -1
  379. data/data/refe/function_source/num/modulo +1 -1
  380. data/data/refe/function_source/num/nonzero/p +1 -1
  381. data/data/refe/function_source/num/quo +1 -1
  382. data/data/refe/function_source/num/remainder +1 -1
  383. data/data/refe/function_source/num/round +1 -1
  384. data/data/refe/function_source/num/step +1 -1
  385. data/data/refe/function_source/num/to/int +1 -1
  386. data/data/refe/function_source/num/truncate +1 -1
  387. data/data/refe/function_source/num/uminus +1 -1
  388. data/data/refe/function_source/num/uplus +1 -1
  389. data/data/refe/function_source/num/zero/p +1 -1
  390. data/data/refe/function_source/numcmp +1 -1
  391. data/data/refe/function_source/numhash +1 -1
  392. data/data/refe/function_source/obj/free +0 -2
  393. data/data/refe/function_source/obj/respond/to +17 -0
  394. data/data/refe/function_source/opt/i/get +1 -1
  395. data/data/refe/function_source/opt/i/set +1 -1
  396. data/data/refe/function_source/original/module +1 -1
  397. data/data/refe/function_source/os/each/obj +1 -1
  398. data/data/refe/function_source/os/live/obj +1 -1
  399. data/data/refe/function_source/os/obj/of +1 -1
  400. data/data/refe/function_source/p/gid/change/privilege +1 -1
  401. data/data/refe/function_source/p/gid/exchange +1 -1
  402. data/data/refe/function_source/p/gid/exchangeable +1 -1
  403. data/data/refe/function_source/p/gid/grant/privilege +1 -1
  404. data/data/refe/function_source/p/gid/have/saved/id +1 -1
  405. data/data/refe/function_source/p/gid/sw/ensure +1 -1
  406. data/data/refe/function_source/p/gid/switch +1 -1
  407. data/data/refe/function_source/p/sys/issetugid +1 -1
  408. data/data/refe/function_source/p/sys/setegid +1 -1
  409. data/data/refe/function_source/p/sys/seteuid +1 -1
  410. data/data/refe/function_source/p/sys/setgid +1 -1
  411. data/data/refe/function_source/p/sys/setregid +1 -1
  412. data/data/refe/function_source/p/sys/setresgid +1 -1
  413. data/data/refe/function_source/p/sys/setresuid +1 -1
  414. data/data/refe/function_source/p/sys/setreuid +1 -1
  415. data/data/refe/function_source/p/sys/setrgid +1 -1
  416. data/data/refe/function_source/p/sys/setruid +1 -1
  417. data/data/refe/function_source/p/sys/setuid +1 -1
  418. data/data/refe/function_source/p/uid/change/privilege +1 -1
  419. data/data/refe/function_source/p/uid/exchange +1 -1
  420. data/data/refe/function_source/p/uid/exchangeable +1 -1
  421. data/data/refe/function_source/p/uid/grant/privilege +1 -1
  422. data/data/refe/function_source/p/uid/have/saved/id +1 -1
  423. data/data/refe/function_source/p/uid/sw/ensure +1 -1
  424. data/data/refe/function_source/p/uid/switch +1 -1
  425. data/data/refe/function_source/parse/string +1 -1
  426. data/data/refe/function_source/parser/warn +1 -1
  427. data/data/refe/function_source/parser/warning +1 -1
  428. data/data/refe/function_source/path/check/0 +1 -1
  429. data/data/refe/function_source/pipe/add/fptr +1 -1
  430. data/data/refe/function_source/pipe/atexit +1 -1
  431. data/data/refe/function_source/pipe/del/fptr +1 -1
  432. data/data/refe/function_source/pipe/finalize +1 -1
  433. data/data/refe/function_source/pipe/open +1 -1
  434. data/data/refe/function_source/postmatch/getter +1 -1
  435. data/data/refe/function_source/prematch/getter +1 -1
  436. data/data/refe/function_source/prep/path +1 -1
  437. data/data/refe/function_source/prep/stdio +1 -1
  438. data/data/refe/function_source/proc/alloc +1 -1
  439. data/data/refe/function_source/proc/arity +1 -1
  440. data/data/refe/function_source/proc/binding +1 -1
  441. data/data/refe/function_source/proc/call +1 -1
  442. data/data/refe/function_source/proc/clone +1 -1
  443. data/data/refe/function_source/proc/dup +1 -1
  444. data/data/refe/function_source/proc/eq +1 -1
  445. data/data/refe/function_source/proc/get/safe/level +1 -1
  446. data/data/refe/function_source/proc/getegid +1 -1
  447. data/data/refe/function_source/proc/geteuid +1 -1
  448. data/data/refe/function_source/proc/getgid +1 -1
  449. data/data/refe/function_source/proc/getgroups +1 -1
  450. data/data/refe/function_source/proc/getmaxgroups +1 -1
  451. data/data/refe/function_source/proc/getpgid +1 -1
  452. data/data/refe/function_source/proc/getpgrp +1 -1
  453. data/data/refe/function_source/proc/getpriority +1 -1
  454. data/data/refe/function_source/proc/getuid +1 -1
  455. data/data/refe/function_source/proc/initgroups +1 -1
  456. data/data/refe/function_source/proc/invoke +1 -1
  457. data/data/refe/function_source/proc/jump/error +1 -1
  458. data/data/refe/function_source/proc/lambda +1 -1
  459. data/data/refe/function_source/proc/s/new +1 -1
  460. data/data/refe/function_source/proc/save/safe/level +1 -1
  461. data/data/refe/function_source/proc/set/safe/level +1 -1
  462. data/data/refe/function_source/proc/setegid +1 -1
  463. data/data/refe/function_source/proc/seteuid +1 -1
  464. data/data/refe/function_source/proc/setgid +1 -1
  465. data/data/refe/function_source/proc/setgroups +1 -1
  466. data/data/refe/function_source/proc/setmaxgroups +1 -1
  467. data/data/refe/function_source/proc/setpgid +1 -1
  468. data/data/refe/function_source/proc/setpgrp +1 -1
  469. data/data/refe/function_source/proc/setpriority +1 -1
  470. data/data/refe/function_source/proc/setsid +1 -1
  471. data/data/refe/function_source/proc/setuid +1 -1
  472. data/data/refe/function_source/proc/to/s +1 -1
  473. data/data/refe/function_source/proc/to/self +1 -1
  474. data/data/refe/function_source/pushback +1 -1
  475. data/data/refe/function_source/r/object0 +1 -1
  476. data/data/refe/function_source/range/op +1 -1
  477. data/data/refe/function_source/rb/-array +1 -1
  478. data/data/refe/function_source/rb/-float +1 -1
  479. data/data/refe/function_source/rb/-integer +1 -1
  480. data/data/refe/function_source/rb/-string +1 -1
  481. data/data/refe/function_source/rb/alias/variable +1 -1
  482. data/data/refe/function_source/rb/any/to/a +1 -1
  483. data/data/refe/function_source/rb/any/to/s +1 -1
  484. data/data/refe/function_source/rb/apply +1 -1
  485. data/data/refe/function_source/rb/ary/and +1 -1
  486. data/data/refe/function_source/rb/ary/aset +1 -1
  487. data/data/refe/function_source/rb/ary/assoc +1 -1
  488. data/data/refe/function_source/rb/ary/clear +1 -1
  489. data/data/refe/function_source/rb/ary/cmp +1 -1
  490. data/data/refe/function_source/rb/ary/collect/- +1 -1
  491. data/data/refe/function_source/rb/ary/collect/bang +1 -1
  492. data/data/refe/function_source/rb/ary/compact/- +1 -1
  493. data/data/refe/function_source/rb/ary/compact/bang +1 -1
  494. data/data/refe/function_source/rb/ary/concat +1 -1
  495. data/data/refe/function_source/rb/ary/delete/- +1 -1
  496. data/data/refe/function_source/rb/ary/delete/at/- +1 -1
  497. data/data/refe/function_source/rb/ary/delete/at/m +1 -1
  498. data/data/refe/function_source/rb/ary/delete/if +1 -1
  499. data/data/refe/function_source/rb/ary/diff +3 -2
  500. data/data/refe/function_source/rb/ary/dup +1 -1
  501. data/data/refe/function_source/rb/ary/each/- +1 -1
  502. data/data/refe/function_source/rb/ary/each/index +1 -1
  503. data/data/refe/function_source/rb/ary/empty/p +1 -1
  504. data/data/refe/function_source/rb/ary/eql +1 -1
  505. data/data/refe/function_source/rb/ary/equal +1 -1
  506. data/data/refe/function_source/rb/ary/fetch +1 -1
  507. data/data/refe/function_source/rb/ary/fill +2 -4
  508. data/data/refe/function_source/rb/ary/first +1 -1
  509. data/data/refe/function_source/rb/ary/flatten/- +1 -1
  510. data/data/refe/function_source/rb/ary/flatten/bang +1 -1
  511. data/data/refe/function_source/rb/ary/hash +1 -1
  512. data/data/refe/function_source/rb/ary/includes +1 -1
  513. data/data/refe/function_source/rb/ary/index +1 -1
  514. data/data/refe/function_source/rb/ary/indexes +1 -1
  515. data/data/refe/function_source/rb/ary/insert +3 -4
  516. data/data/refe/function_source/rb/ary/inspect +1 -1
  517. data/data/refe/function_source/rb/ary/join/- +1 -1
  518. data/data/refe/function_source/rb/ary/join/m +1 -1
  519. data/data/refe/function_source/rb/ary/last +1 -1
  520. data/data/refe/function_source/rb/ary/length +1 -1
  521. data/data/refe/function_source/rb/ary/nitems +1 -1
  522. data/data/refe/function_source/rb/ary/or +1 -1
  523. data/data/refe/function_source/rb/ary/plus +1 -1
  524. data/data/refe/function_source/rb/ary/rassoc +1 -1
  525. data/data/refe/function_source/rb/ary/reject/- +1 -1
  526. data/data/refe/function_source/rb/ary/reject/bang +1 -1
  527. data/data/refe/function_source/rb/ary/replace +1 -1
  528. data/data/refe/function_source/rb/ary/reverse/- +1 -1
  529. data/data/refe/function_source/rb/ary/reverse/bang +1 -1
  530. data/data/refe/function_source/rb/ary/reverse/each +1 -1
  531. data/data/refe/function_source/rb/ary/reverse/m +1 -1
  532. data/data/refe/function_source/rb/ary/rindex +1 -1
  533. data/data/refe/function_source/rb/ary/select +1 -1
  534. data/data/refe/function_source/rb/ary/slice/bang +1 -1
  535. data/data/refe/function_source/rb/ary/sort/- +1 -1
  536. data/data/refe/function_source/rb/ary/sort/bang +1 -1
  537. data/data/refe/function_source/rb/ary/splice +1 -1
  538. data/data/refe/function_source/rb/ary/times +1 -1
  539. data/data/refe/function_source/rb/ary/to/a +1 -1
  540. data/data/refe/function_source/rb/ary/to/ary/- +1 -1
  541. data/data/refe/function_source/rb/ary/to/ary/m +1 -1
  542. data/data/refe/function_source/rb/ary/to/s +1 -1
  543. data/data/refe/function_source/rb/ary/transpose +1 -1
  544. data/data/refe/function_source/rb/ary/uniq/- +1 -1
  545. data/data/refe/function_source/rb/ary/uniq/bang +1 -1
  546. data/data/refe/function_source/rb/ary/values/at +1 -1
  547. data/data/refe/function_source/rb/ary/zip +1 -1
  548. data/data/refe/function_source/rb/attr/get +1 -1
  549. data/data/refe/function_source/rb/autoload/- +1 -1
  550. data/data/refe/function_source/rb/autoload/load +4 -4
  551. data/data/refe/function_source/rb/autoload/p +1 -1
  552. data/data/refe/function_source/rb/backref/error +1 -1
  553. data/data/refe/function_source/rb/backref/get +1 -1
  554. data/data/refe/function_source/rb/backref/set +1 -1
  555. data/data/refe/function_source/rb/backtrace +1 -1
  556. data/data/refe/function_source/rb/big/abs +1 -1
  557. data/data/refe/function_source/rb/big/aref +1 -1
  558. data/data/refe/function_source/rb/big/coerce +1 -1
  559. data/data/refe/function_source/rb/big/hash +1 -1
  560. data/data/refe/function_source/rb/big/rand +1 -1
  561. data/data/refe/function_source/rb/big/rshift +2 -1
  562. data/data/refe/function_source/rb/big/size +1 -1
  563. data/data/refe/function_source/rb/block/given/p +1 -1
  564. data/data/refe/function_source/rb/block/proc +1 -1
  565. data/data/refe/function_source/rb/call/- +4 -4
  566. data/data/refe/function_source/rb/call/super +5 -2
  567. data/data/refe/function_source/rb/call0 +1 -1
  568. data/data/refe/function_source/rb/callcc +1 -1
  569. data/data/refe/function_source/rb/catch +1 -1
  570. data/data/refe/function_source/rb/check/convert/type +1 -1
  571. data/data/refe/function_source/rb/check/inheritable +1 -1
  572. data/data/refe/function_source/rb/class/allocate/instance +1 -1
  573. data/data/refe/function_source/rb/class/inherited/- +1 -1
  574. data/data/refe/function_source/rb/class/inherited/p +1 -1
  575. data/data/refe/function_source/rb/class/init/copy +1 -1
  576. data/data/refe/function_source/rb/class/initialize +1 -1
  577. data/data/refe/function_source/rb/class/instance/methods +1 -1
  578. data/data/refe/function_source/rb/class/new/instance +1 -1
  579. data/data/refe/function_source/rb/class/private/instance/methods +1 -1
  580. data/data/refe/function_source/rb/class/protected/instance/methods +1 -1
  581. data/data/refe/function_source/rb/class/public/instance/methods +1 -1
  582. data/data/refe/function_source/rb/class/s/alloc +1 -1
  583. data/data/refe/function_source/rb/class/superclass +1 -1
  584. data/data/refe/function_source/rb/compile/cstr +1 -1
  585. data/data/refe/function_source/rb/compile/file +1 -1
  586. data/data/refe/function_source/rb/compile/string +1 -1
  587. data/data/refe/function_source/rb/const/defined/- +1 -1
  588. data/data/refe/function_source/rb/const/defined/0 +1 -1
  589. data/data/refe/function_source/rb/const/defined/at +1 -1
  590. data/data/refe/function_source/rb/const/defined/from +1 -1
  591. data/data/refe/function_source/rb/const/get/- +1 -1
  592. data/data/refe/function_source/rb/const/get/0 +2 -2
  593. data/data/refe/function_source/rb/const/get/at +1 -1
  594. data/data/refe/function_source/rb/const/get/from +1 -1
  595. data/data/refe/function_source/rb/const/list +1 -1
  596. data/data/refe/function_source/rb/const/set +1 -1
  597. data/data/refe/function_source/rb/cont/call +1 -1
  598. data/data/refe/function_source/rb/convert/type +1 -1
  599. data/data/refe/function_source/rb/copy/generic/ivar +1 -1
  600. data/data/refe/function_source/rb/cstr/to/dbl +1 -1
  601. data/data/refe/function_source/rb/cv/get +1 -1
  602. data/data/refe/function_source/rb/cv/set +1 -1
  603. data/data/refe/function_source/rb/cvar/defined +1 -1
  604. data/data/refe/function_source/rb/cvar/get +1 -1
  605. data/data/refe/function_source/rb/cvar/set +1 -1
  606. data/data/refe/function_source/rb/dbl/cmp +1 -1
  607. data/data/refe/function_source/rb/define/alias +1 -1
  608. data/data/refe/function_source/rb/define/attr +1 -1
  609. data/data/refe/function_source/rb/define/class/- +1 -1
  610. data/data/refe/function_source/rb/define/class/id +1 -1
  611. data/data/refe/function_source/rb/define/class/under +1 -1
  612. data/data/refe/function_source/rb/define/class/variable +1 -1
  613. data/data/refe/function_source/rb/define/const +1 -1
  614. data/data/refe/function_source/rb/define/global/const +1 -1
  615. data/data/refe/function_source/rb/define/global/function +1 -1
  616. data/data/refe/function_source/rb/define/hooked/variable +1 -1
  617. data/data/refe/function_source/rb/define/method/- +1 -1
  618. data/data/refe/function_source/rb/define/method/id +1 -1
  619. data/data/refe/function_source/rb/define/module/- +1 -1
  620. data/data/refe/function_source/rb/define/module/function +1 -1
  621. data/data/refe/function_source/rb/define/module/id +1 -1
  622. data/data/refe/function_source/rb/define/module/under +1 -1
  623. data/data/refe/function_source/rb/define/private/method +1 -1
  624. data/data/refe/function_source/rb/define/protected/method +1 -1
  625. data/data/refe/function_source/rb/define/readonly/variable +1 -1
  626. data/data/refe/function_source/rb/define/singleton/method +1 -1
  627. data/data/refe/function_source/rb/define/variable +1 -1
  628. data/data/refe/function_source/rb/define/virtual/variable +1 -1
  629. data/data/refe/function_source/rb/ensure +1 -1
  630. data/data/refe/function_source/rb/eof/error +1 -1
  631. data/data/refe/function_source/rb/eval/- +1 -1
  632. data/data/refe/function_source/rb/exc/fatal +1 -1
  633. data/data/refe/function_source/rb/exc/raise +1 -1
  634. data/data/refe/function_source/rb/exec/end/proc +1 -1
  635. data/data/refe/function_source/rb/exit +1 -1
  636. data/data/refe/function_source/rb/extend/object +1 -1
  637. data/data/refe/function_source/rb/f/-e-n-d +1 -1
  638. data/data/refe/function_source/rb/f/abort +1 -1
  639. data/data/refe/function_source/rb/f/array +1 -1
  640. data/data/refe/function_source/rb/f/at/exit +1 -1
  641. data/data/refe/function_source/rb/f/autoload/- +1 -1
  642. data/data/refe/function_source/rb/f/autoload/p +1 -1
  643. data/data/refe/function_source/rb/f/backquote +3 -2
  644. data/data/refe/function_source/rb/f/binding +1 -1
  645. data/data/refe/function_source/rb/f/block/given/p +1 -1
  646. data/data/refe/function_source/rb/f/caller +1 -1
  647. data/data/refe/function_source/rb/f/catch +1 -1
  648. data/data/refe/function_source/rb/f/eval +1 -1
  649. data/data/refe/function_source/rb/f/exit/- +1 -1
  650. data/data/refe/function_source/rb/f/exit/bang +1 -1
  651. data/data/refe/function_source/rb/f/float +1 -1
  652. data/data/refe/function_source/rb/f/fork +1 -1
  653. data/data/refe/function_source/rb/f/getc +1 -1
  654. data/data/refe/function_source/rb/f/gets +1 -1
  655. data/data/refe/function_source/rb/f/global/variables +1 -1
  656. data/data/refe/function_source/rb/f/integer +1 -1
  657. data/data/refe/function_source/rb/f/lambda +1 -1
  658. data/data/refe/function_source/rb/f/load +1 -1
  659. data/data/refe/function_source/rb/f/local/variables +1 -1
  660. data/data/refe/function_source/rb/f/loop +1 -1
  661. data/data/refe/function_source/rb/f/open +1 -1
  662. data/data/refe/function_source/rb/f/p +1 -1
  663. data/data/refe/function_source/rb/f/print +1 -1
  664. data/data/refe/function_source/rb/f/printf +1 -1
  665. data/data/refe/function_source/rb/f/putc +1 -1
  666. data/data/refe/function_source/rb/f/puts +1 -1
  667. data/data/refe/function_source/rb/f/raise +1 -1
  668. data/data/refe/function_source/rb/f/readline +1 -1
  669. data/data/refe/function_source/rb/f/readlines +1 -1
  670. data/data/refe/function_source/rb/f/require +1 -1
  671. data/data/refe/function_source/rb/f/select +1 -1
  672. data/data/refe/function_source/rb/f/send +1 -1
  673. data/data/refe/function_source/rb/f/sleep +1 -1
  674. data/data/refe/function_source/rb/f/sprintf +7 -2
  675. data/data/refe/function_source/rb/f/string +1 -1
  676. data/data/refe/function_source/rb/f/syscall +1 -1
  677. data/data/refe/function_source/rb/f/system +1 -1
  678. data/data/refe/function_source/rb/f/test +8 -8
  679. data/data/refe/function_source/rb/f/throw +1 -1
  680. data/data/refe/function_source/rb/f/trace/var +1 -1
  681. data/data/refe/function_source/rb/f/untrace/var +1 -1
  682. data/data/refe/function_source/rb/false +1 -1
  683. data/data/refe/function_source/rb/fdopen +1 -1
  684. data/data/refe/function_source/rb/feature/p +1 -1
  685. data/data/refe/function_source/rb/file/atime +1 -1
  686. data/data/refe/function_source/rb/file/chmod +1 -1
  687. data/data/refe/function_source/rb/file/chown +1 -1
  688. data/data/refe/function_source/rb/file/const +1 -1
  689. data/data/refe/function_source/rb/file/ctime +1 -1
  690. data/data/refe/function_source/rb/file/expand/path +1 -1
  691. data/data/refe/function_source/rb/file/flock +7 -7
  692. data/data/refe/function_source/rb/file/ftype +1 -1
  693. data/data/refe/function_source/rb/file/initialize +1 -1
  694. data/data/refe/function_source/rb/file/join +2 -2
  695. data/data/refe/function_source/rb/file/lstat +1 -1
  696. data/data/refe/function_source/rb/file/mtime +1 -1
  697. data/data/refe/function_source/rb/file/open/- +1 -1
  698. data/data/refe/function_source/rb/file/open/internal +1 -1
  699. data/data/refe/function_source/rb/file/path +1 -1
  700. data/data/refe/function_source/rb/file/s/atime +1 -1
  701. data/data/refe/function_source/rb/file/s/basename +22 -3
  702. data/data/refe/function_source/rb/file/s/chmod +1 -1
  703. data/data/refe/function_source/rb/file/s/chown +1 -1
  704. data/data/refe/function_source/rb/file/s/ctime +1 -1
  705. data/data/refe/function_source/rb/file/s/dirname +11 -4
  706. data/data/refe/function_source/rb/file/s/expand/path +1 -1
  707. data/data/refe/function_source/rb/file/s/extname +1 -1
  708. data/data/refe/function_source/rb/file/s/ftype +1 -1
  709. data/data/refe/function_source/rb/file/s/join +1 -1
  710. data/data/refe/function_source/rb/file/s/lchmod +1 -1
  711. data/data/refe/function_source/rb/file/s/lchown +1 -1
  712. data/data/refe/function_source/rb/file/s/link +6 -1
  713. data/data/refe/function_source/rb/file/s/lstat +1 -1
  714. data/data/refe/function_source/rb/file/s/mtime +1 -1
  715. data/data/refe/function_source/rb/file/s/readlink +6 -2
  716. data/data/refe/function_source/rb/file/s/rename +1 -1
  717. data/data/refe/function_source/rb/file/s/size +1 -1
  718. data/data/refe/function_source/rb/file/s/split +1 -1
  719. data/data/refe/function_source/rb/file/s/stat +1 -1
  720. data/data/refe/function_source/rb/file/s/symlink +1 -1
  721. data/data/refe/function_source/rb/file/s/truncate +1 -1
  722. data/data/refe/function_source/rb/file/s/umask +1 -1
  723. data/data/refe/function_source/rb/file/s/unlink +1 -1
  724. data/data/refe/function_source/rb/file/s/utime +1 -1
  725. data/data/refe/function_source/rb/file/sysopen/- +1 -1
  726. data/data/refe/function_source/rb/file/sysopen/internal +1 -1
  727. data/data/refe/function_source/rb/file/truncate +1 -1
  728. data/data/refe/function_source/rb/find/file/- +1 -1
  729. data/data/refe/function_source/rb/find/file/ext +1 -1
  730. data/data/refe/function_source/rb/fix/induced/from +1 -1
  731. data/data/refe/function_source/rb/fix2int +1 -1
  732. data/data/refe/function_source/rb/fix2str +1 -1
  733. data/data/refe/function_source/rb/fix2uint +1 -1
  734. data/data/refe/function_source/rb/flo/induced/from +1 -1
  735. data/data/refe/function_source/rb/float/new +1 -1
  736. data/data/refe/function_source/rb/fopen +1 -1
  737. data/data/refe/function_source/rb/frame/last/func +1 -1
  738. data/data/refe/function_source/rb/free/generic/ivar +1 -1
  739. data/data/refe/function_source/rb/funcall/- +1 -1
  740. data/data/refe/function_source/rb/funcall/rescue +1 -1
  741. data/data/refe/function_source/rb/funcall2 +1 -1
  742. data/data/refe/function_source/rb/funcall3 +1 -1
  743. data/data/refe/function_source/rb/gc/- +1 -1
  744. data/data/refe/function_source/rb/gc/call/finalizer/at/exit +1 -1
  745. data/data/refe/function_source/rb/gc/copy/finalizer +1 -1
  746. data/data/refe/function_source/rb/gc/finalize/deferred +1 -1
  747. data/data/refe/function_source/rb/gc/mark/frame +1 -1
  748. data/data/refe/function_source/rb/gc/mark/global/tbl +3 -1
  749. data/data/refe/function_source/rb/gc/mark/parser +7 -1
  750. data/data/refe/function_source/rb/gc/mark/threads +1 -1
  751. data/data/refe/function_source/rb/gc/start +1 -1
  752. data/data/refe/function_source/rb/generic/ivar/table +1 -1
  753. data/data/refe/function_source/rb/get/kcode +1 -1
  754. data/data/refe/function_source/rb/getc +1 -1
  755. data/data/refe/function_source/rb/gets +1 -1
  756. data/data/refe/function_source/rb/gv/get +1 -1
  757. data/data/refe/function_source/rb/gv/set +1 -1
  758. data/data/refe/function_source/rb/gvar/defined +1 -1
  759. data/data/refe/function_source/rb/gvar/get +1 -1
  760. data/data/refe/function_source/rb/gvar/set +1 -1
  761. data/data/refe/function_source/rb/id/attrset +1 -1
  762. data/data/refe/function_source/rb/id2name +1 -1
  763. data/data/refe/function_source/rb/include/module +1 -1
  764. data/data/refe/function_source/rb/inspect +1 -1
  765. data/data/refe/function_source/rb/inspecting/p +1 -1
  766. data/data/refe/function_source/rb/int/induced/from +1 -1
  767. data/data/refe/function_source/rb/intern +8 -6
  768. data/data/refe/function_source/rb/interrupt +1 -1
  769. data/data/refe/function_source/rb/io/addstr +1 -1
  770. data/data/refe/function_source/rb/io/binmode +1 -1
  771. data/data/refe/function_source/rb/io/check/closed +1 -1
  772. data/data/refe/function_source/rb/io/check/initialized +1 -1
  773. data/data/refe/function_source/rb/io/check/io +1 -1
  774. data/data/refe/function_source/rb/io/check/readable +1 -1
  775. data/data/refe/function_source/rb/io/check/writable +1 -1
  776. data/data/refe/function_source/rb/io/close/- +1 -1
  777. data/data/refe/function_source/rb/io/close/m +1 -1
  778. data/data/refe/function_source/rb/io/close/read +1 -1
  779. data/data/refe/function_source/rb/io/close/write +1 -1
  780. data/data/refe/function_source/rb/io/closed +1 -1
  781. data/data/refe/function_source/rb/io/ctl +1 -1
  782. data/data/refe/function_source/rb/io/each/byte +1 -1
  783. data/data/refe/function_source/rb/io/each/line +1 -1
  784. data/data/refe/function_source/rb/io/eof +1 -1
  785. data/data/refe/function_source/rb/io/fcntl +1 -1
  786. data/data/refe/function_source/rb/io/fileno +1 -1
  787. data/data/refe/function_source/rb/io/flags/mode +1 -1
  788. data/data/refe/function_source/rb/io/flush +1 -1
  789. data/data/refe/function_source/rb/io/fptr/cleanup +1 -1
  790. data/data/refe/function_source/rb/io/fptr/finalize +1 -1
  791. data/data/refe/function_source/rb/io/fread +1 -1
  792. data/data/refe/function_source/rb/io/fsync +1 -1
  793. data/data/refe/function_source/rb/io/fwrite +1 -1
  794. data/data/refe/function_source/rb/io/get/io +1 -1
  795. data/data/refe/function_source/rb/io/getc +1 -1
  796. data/data/refe/function_source/rb/io/getline/- +1 -1
  797. data/data/refe/function_source/rb/io/getline/fast +1 -1
  798. data/data/refe/function_source/rb/io/gets/- +1 -1
  799. data/data/refe/function_source/rb/io/gets/m +1 -1
  800. data/data/refe/function_source/rb/io/init/copy +1 -1
  801. data/data/refe/function_source/rb/io/initialize +1 -1
  802. data/data/refe/function_source/rb/io/inspect +1 -1
  803. data/data/refe/function_source/rb/io/ioctl +1 -1
  804. data/data/refe/function_source/rb/io/isatty +1 -1
  805. data/data/refe/function_source/rb/io/lineno +1 -1
  806. data/data/refe/function_source/rb/io/mode/flags +1 -1
  807. data/data/refe/function_source/rb/io/mode/modenum +1 -1
  808. data/data/refe/function_source/rb/io/mode/string +1 -1
  809. data/data/refe/function_source/rb/io/modenum/flags +1 -1
  810. data/data/refe/function_source/rb/io/modenum/mode +1 -1
  811. data/data/refe/function_source/rb/io/open +1 -1
  812. data/data/refe/function_source/rb/io/pid +1 -1
  813. data/data/refe/function_source/rb/io/print +1 -1
  814. data/data/refe/function_source/rb/io/printf +1 -1
  815. data/data/refe/function_source/rb/io/putc +1 -1
  816. data/data/refe/function_source/rb/io/puts +1 -1
  817. data/data/refe/function_source/rb/io/readchar +1 -1
  818. data/data/refe/function_source/rb/io/readline +1 -1
  819. data/data/refe/function_source/rb/io/readlines +1 -1
  820. data/data/refe/function_source/rb/io/reopen +1 -1
  821. data/data/refe/function_source/rb/io/rewind +1 -1
  822. data/data/refe/function_source/rb/io/s/for/fd +1 -1
  823. data/data/refe/function_source/rb/io/s/foreach +1 -1
  824. data/data/refe/function_source/rb/io/s/new +1 -1
  825. data/data/refe/function_source/rb/io/s/open +1 -1
  826. data/data/refe/function_source/rb/io/s/pipe +1 -1
  827. data/data/refe/function_source/rb/io/s/popen +1 -1
  828. data/data/refe/function_source/rb/io/s/read +1 -1
  829. data/data/refe/function_source/rb/io/s/readlines +1 -1
  830. data/data/refe/function_source/rb/io/s/sysopen +1 -1
  831. data/data/refe/function_source/rb/io/seek/- +1 -1
  832. data/data/refe/function_source/rb/io/seek/m +1 -1
  833. data/data/refe/function_source/rb/io/set/lineno +1 -1
  834. data/data/refe/function_source/rb/io/set/pos +1 -1
  835. data/data/refe/function_source/rb/io/set/sync +1 -1
  836. data/data/refe/function_source/rb/io/stat +1 -1
  837. data/data/refe/function_source/rb/io/sync +1 -1
  838. data/data/refe/function_source/rb/io/synchronized +1 -1
  839. data/data/refe/function_source/rb/io/sysread +1 -1
  840. data/data/refe/function_source/rb/io/sysseek +1 -1
  841. data/data/refe/function_source/rb/io/syswrite +1 -1
  842. data/data/refe/function_source/rb/io/taint/check +1 -1
  843. data/data/refe/function_source/rb/io/tell +1 -1
  844. data/data/refe/function_source/rb/io/to/io +1 -1
  845. data/data/refe/function_source/rb/io/unbuffered +1 -1
  846. data/data/refe/function_source/rb/io/ungetc +1 -1
  847. data/data/refe/function_source/rb/io/wait/readable +1 -1
  848. data/data/refe/function_source/rb/io/wait/writable +1 -1
  849. data/data/refe/function_source/rb/io/write +1 -1
  850. data/data/refe/function_source/rb/is/class/id +1 -1
  851. data/data/refe/function_source/rb/is/const/id +1 -1
  852. data/data/refe/function_source/rb/is/instance/id +1 -1
  853. data/data/refe/function_source/rb/is/junk/id +1 -1
  854. data/data/refe/function_source/rb/is/local/id +1 -1
  855. data/data/refe/function_source/rb/iter/break +1 -1
  856. data/data/refe/function_source/rb/iterate +1 -1
  857. data/data/refe/function_source/rb/iterator/p +1 -1
  858. data/data/refe/function_source/rb/iv/get +1 -1
  859. data/data/refe/function_source/rb/iv/set +1 -1
  860. data/data/refe/function_source/rb/ivar/defined +1 -1
  861. data/data/refe/function_source/rb/ivar/get +1 -1
  862. data/data/refe/function_source/rb/ivar/set +1 -1
  863. data/data/refe/function_source/rb/jump/tag +1 -1
  864. data/data/refe/function_source/rb/kcode +1 -1
  865. data/data/refe/function_source/rb/lastline/get +1 -1
  866. data/data/refe/function_source/rb/lastline/set +1 -1
  867. data/data/refe/function_source/rb/load/- +1 -1
  868. data/data/refe/function_source/rb/load/protect +1 -1
  869. data/data/refe/function_source/rb/longjmp +1 -1
  870. data/data/refe/function_source/rb/make/exception +1 -1
  871. data/data/refe/function_source/rb/make/metaclass +1 -1
  872. data/data/refe/function_source/rb/mark/end/proc +1 -1
  873. data/data/refe/function_source/rb/mark/generic/ivar/- +1 -1
  874. data/data/refe/function_source/rb/mark/generic/ivar/tbl +1 -1
  875. data/data/refe/function_source/rb/match/busy +1 -1
  876. data/data/refe/function_source/rb/memsearch +1 -1
  877. data/data/refe/function_source/rb/method/missing +1 -1
  878. data/data/refe/function_source/rb/mod/ancestors +1 -1
  879. data/data/refe/function_source/rb/mod/append/features +1 -1
  880. data/data/refe/function_source/rb/mod/attr/- +1 -1
  881. data/data/refe/function_source/rb/mod/attr/accessor +1 -1
  882. data/data/refe/function_source/rb/mod/attr/reader +1 -1
  883. data/data/refe/function_source/rb/mod/attr/writer +1 -1
  884. data/data/refe/function_source/rb/mod/autoload/- +1 -1
  885. data/data/refe/function_source/rb/mod/autoload/p +1 -1
  886. data/data/refe/function_source/rb/mod/class/variables +1 -1
  887. data/data/refe/function_source/rb/mod/cmp +1 -1
  888. data/data/refe/function_source/rb/mod/const/at +1 -1
  889. data/data/refe/function_source/rb/mod/const/defined +1 -1
  890. data/data/refe/function_source/rb/mod/const/get +1 -1
  891. data/data/refe/function_source/rb/mod/const/missing +1 -1
  892. data/data/refe/function_source/rb/mod/const/of +1 -1
  893. data/data/refe/function_source/rb/mod/const/set +1 -1
  894. data/data/refe/function_source/rb/mod/constants +1 -1
  895. data/data/refe/function_source/rb/mod/cvar/get +1 -1
  896. data/data/refe/function_source/rb/mod/cvar/set +1 -1
  897. data/data/refe/function_source/rb/mod/define/method +2 -1
  898. data/data/refe/function_source/rb/mod/eqq +1 -1
  899. data/data/refe/function_source/rb/mod/extend/object +1 -1
  900. data/data/refe/function_source/rb/mod/freeze +1 -1
  901. data/data/refe/function_source/rb/mod/ge +1 -1
  902. data/data/refe/function_source/rb/mod/gt +1 -1
  903. data/data/refe/function_source/rb/mod/include/- +1 -1
  904. data/data/refe/function_source/rb/mod/include/p +1 -1
  905. data/data/refe/function_source/rb/mod/included/modules +1 -1
  906. data/data/refe/function_source/rb/mod/init/copy +1 -1
  907. data/data/refe/function_source/rb/mod/initialize +1 -1
  908. data/data/refe/function_source/rb/mod/lt +1 -1
  909. data/data/refe/function_source/rb/mod/method/- +1 -1
  910. data/data/refe/function_source/rb/mod/method/defined +1 -1
  911. data/data/refe/function_source/rb/mod/modfunc +1 -1
  912. data/data/refe/function_source/rb/mod/module/eval +1 -1
  913. data/data/refe/function_source/rb/mod/private/- +1 -1
  914. data/data/refe/function_source/rb/mod/private/method/- +1 -1
  915. data/data/refe/function_source/rb/mod/private/method/defined +1 -1
  916. data/data/refe/function_source/rb/mod/protected/- +1 -1
  917. data/data/refe/function_source/rb/mod/protected/method/defined +1 -1
  918. data/data/refe/function_source/rb/mod/public/- +1 -1
  919. data/data/refe/function_source/rb/mod/public/method/- +1 -1
  920. data/data/refe/function_source/rb/mod/public/method/defined +1 -1
  921. data/data/refe/function_source/rb/mod/remove/const +1 -1
  922. data/data/refe/function_source/rb/mod/remove/cvar +1 -1
  923. data/data/refe/function_source/rb/module/new +1 -1
  924. data/data/refe/function_source/rb/module/s/alloc +1 -1
  925. data/data/refe/function_source/rb/need/block +1 -1
  926. data/data/refe/function_source/rb/node/newnode +1 -1
  927. data/data/refe/function_source/rb/num2dbl +1 -1
  928. data/data/refe/function_source/rb/num2fix +1 -1
  929. data/data/refe/function_source/rb/num2int +1 -1
  930. data/data/refe/function_source/rb/num2ll +1 -1
  931. data/data/refe/function_source/rb/num2long +1 -1
  932. data/data/refe/function_source/rb/num2uint +1 -1
  933. data/data/refe/function_source/rb/num2ull +1 -1
  934. data/data/refe/function_source/rb/num2ulong +1 -1
  935. data/data/refe/function_source/rb/obj/alloc +1 -1
  936. data/data/refe/function_source/rb/obj/call/init +1 -1
  937. data/data/refe/function_source/rb/obj/display +1 -1
  938. data/data/refe/function_source/rb/obj/dummy +1 -1
  939. data/data/refe/function_source/rb/obj/extend +1 -1
  940. data/data/refe/function_source/rb/obj/freeze +1 -1
  941. data/data/refe/function_source/rb/obj/frozen/p +1 -1
  942. data/data/refe/function_source/rb/obj/infect +1 -1
  943. data/data/refe/function_source/rb/obj/init/copy +1 -1
  944. data/data/refe/function_source/rb/obj/inspect +1 -1
  945. data/data/refe/function_source/rb/obj/instance/eval +1 -1
  946. data/data/refe/function_source/rb/obj/instance/variables +1 -1
  947. data/data/refe/function_source/rb/obj/is/instance/of +1 -1
  948. data/data/refe/function_source/rb/obj/is/kind/of +1 -1
  949. data/data/refe/function_source/rb/obj/is/method +1 -1
  950. data/data/refe/function_source/rb/obj/ivar/get +1 -1
  951. data/data/refe/function_source/rb/obj/ivar/set +1 -1
  952. data/data/refe/function_source/rb/obj/method +1 -1
  953. data/data/refe/function_source/rb/obj/methods +1 -1
  954. data/data/refe/function_source/rb/obj/pattern/match +1 -1
  955. data/data/refe/function_source/rb/obj/private/methods +1 -1
  956. data/data/refe/function_source/rb/obj/protected/methods +1 -1
  957. data/data/refe/function_source/rb/obj/public/methods +1 -1
  958. data/data/refe/function_source/rb/obj/remove/instance/variable +1 -1
  959. data/data/refe/function_source/rb/obj/respond/to +15 -12
  960. data/data/refe/function_source/rb/obj/singleton/methods +1 -1
  961. data/data/refe/function_source/rb/obj/taint +1 -1
  962. data/data/refe/function_source/rb/obj/tainted +1 -1
  963. data/data/refe/function_source/rb/obj/untaint +1 -1
  964. data/data/refe/function_source/rb/open/file +1 -1
  965. data/data/refe/function_source/rb/p +1 -1
  966. data/data/refe/function_source/rb/parser/append/print +1 -1
  967. data/data/refe/function_source/rb/parser/calloc +11 -0
  968. data/data/refe/function_source/rb/parser/free +17 -0
  969. data/data/refe/function_source/rb/parser/malloc +11 -0
  970. data/data/refe/function_source/rb/parser/realloc +22 -0
  971. data/data/refe/function_source/rb/parser/while/loop +1 -1
  972. data/data/refe/function_source/rb/path/check +1 -1
  973. data/data/refe/function_source/rb/path/end +1 -1
  974. data/data/refe/function_source/rb/path/last/separator +1 -1
  975. data/data/refe/function_source/rb/path/next +1 -1
  976. data/data/refe/function_source/rb/path/skip/prefix +4 -2
  977. data/data/refe/function_source/rb/proc/new +1 -1
  978. data/data/refe/function_source/rb/proc/times +1 -1
  979. data/data/refe/function_source/rb/protect/- +1 -1
  980. data/data/refe/function_source/rb/protect/inspect +1 -1
  981. data/data/refe/function_source/rb/provide/- +1 -1
  982. data/data/refe/function_source/rb/provide/feature +1 -1
  983. data/data/refe/function_source/rb/provided +1 -1
  984. data/data/refe/function_source/rb/raise/jump +1 -1
  985. data/data/refe/function_source/rb/read/check +1 -1
  986. data/data/refe/function_source/rb/read/pending +1 -1
  987. data/data/refe/function_source/rb/reg/adjust/startpos +1 -1
  988. data/data/refe/function_source/rb/reg/cur/kcode +1 -1
  989. data/data/refe/function_source/rb/reg/eqq +1 -1
  990. data/data/refe/function_source/rb/reg/equal +1 -1
  991. data/data/refe/function_source/rb/reg/get/kcode +1 -1
  992. data/data/refe/function_source/rb/reg/hash +1 -1
  993. data/data/refe/function_source/rb/reg/init/copy +1 -1
  994. data/data/refe/function_source/rb/reg/initialize/- +1 -1
  995. data/data/refe/function_source/rb/reg/initialize/m +1 -1
  996. data/data/refe/function_source/rb/reg/last/match +1 -1
  997. data/data/refe/function_source/rb/reg/match/- +1 -1
  998. data/data/refe/function_source/rb/reg/match/last +1 -1
  999. data/data/refe/function_source/rb/reg/match/m +1 -1
  1000. data/data/refe/function_source/rb/reg/match/post +1 -1
  1001. data/data/refe/function_source/rb/reg/match/pre +1 -1
  1002. data/data/refe/function_source/rb/reg/match2 +1 -1
  1003. data/data/refe/function_source/rb/reg/new +1 -1
  1004. data/data/refe/function_source/rb/reg/nth/defined +1 -1
  1005. data/data/refe/function_source/rb/reg/nth/match +1 -1
  1006. data/data/refe/function_source/rb/reg/options/- +1 -1
  1007. data/data/refe/function_source/rb/reg/prepare/re +1 -1
  1008. data/data/refe/function_source/rb/reg/quote +1 -1
  1009. data/data/refe/function_source/rb/reg/regcomp +2 -1
  1010. data/data/refe/function_source/rb/reg/regsub +1 -1
  1011. data/data/refe/function_source/rb/reg/s/alloc +1 -1
  1012. data/data/refe/function_source/rb/reg/s/last/match +1 -1
  1013. data/data/refe/function_source/rb/reg/s/quote +1 -1
  1014. data/data/refe/function_source/rb/reg/s/union +1 -1
  1015. data/data/refe/function_source/rb/reg/search +1 -1
  1016. data/data/refe/function_source/rb/require/- +1 -1
  1017. data/data/refe/function_source/rb/require/safe +2 -3
  1018. data/data/refe/function_source/rb/rescue +1 -1
  1019. data/data/refe/function_source/rb/rescue2 +1 -1
  1020. data/data/refe/function_source/rb/respond/to +2 -10
  1021. data/data/refe/function_source/rb/scan/args +1 -1
  1022. data/data/refe/function_source/rb/set/end/proc +1 -1
  1023. data/data/refe/function_source/rb/set/kcode +1 -1
  1024. data/data/refe/function_source/rb/set/safe/level +1 -1
  1025. data/data/refe/function_source/rb/setegid/core +1 -1
  1026. data/data/refe/function_source/rb/seteuid/core +1 -1
  1027. data/data/refe/function_source/rb/singleton/class/- +1 -1
  1028. data/data/refe/function_source/rb/singleton/class/attached +1 -1
  1029. data/data/refe/function_source/rb/singleton/class/clone +1 -1
  1030. data/data/refe/function_source/rb/stat/- +1 -1
  1031. data/data/refe/function_source/rb/stat/-r +1 -1
  1032. data/data/refe/function_source/rb/stat/-s +1 -1
  1033. data/data/refe/function_source/rb/stat/-w +1 -1
  1034. data/data/refe/function_source/rb/stat/-x +1 -1
  1035. data/data/refe/function_source/rb/stat/atime +1 -1
  1036. data/data/refe/function_source/rb/stat/b +1 -1
  1037. data/data/refe/function_source/rb/stat/blksize +1 -1
  1038. data/data/refe/function_source/rb/stat/blocks +1 -1
  1039. data/data/refe/function_source/rb/stat/c +1 -1
  1040. data/data/refe/function_source/rb/stat/cmp +1 -1
  1041. data/data/refe/function_source/rb/stat/ctime +1 -1
  1042. data/data/refe/function_source/rb/stat/d +1 -1
  1043. data/data/refe/function_source/rb/stat/dev/- +1 -1
  1044. data/data/refe/function_source/rb/stat/dev/major +1 -1
  1045. data/data/refe/function_source/rb/stat/dev/minor +1 -1
  1046. data/data/refe/function_source/rb/stat/f +1 -1
  1047. data/data/refe/function_source/rb/stat/ftype +1 -1
  1048. data/data/refe/function_source/rb/stat/gid +1 -1
  1049. data/data/refe/function_source/rb/stat/grpowned +1 -1
  1050. data/data/refe/function_source/rb/stat/init/- +1 -1
  1051. data/data/refe/function_source/rb/stat/init/copy +1 -1
  1052. data/data/refe/function_source/rb/stat/ino +1 -1
  1053. data/data/refe/function_source/rb/stat/inspect +17 -17
  1054. data/data/refe/function_source/rb/stat/l +1 -1
  1055. data/data/refe/function_source/rb/stat/mode +1 -1
  1056. data/data/refe/function_source/rb/stat/mtime +1 -1
  1057. data/data/refe/function_source/rb/stat/nlink +1 -1
  1058. data/data/refe/function_source/rb/stat/owned +1 -1
  1059. data/data/refe/function_source/rb/stat/p +1 -1
  1060. data/data/refe/function_source/rb/stat/r +1 -1
  1061. data/data/refe/function_source/rb/stat/rdev/- +1 -1
  1062. data/data/refe/function_source/rb/stat/rdev/major +1 -1
  1063. data/data/refe/function_source/rb/stat/rdev/minor +1 -1
  1064. data/data/refe/function_source/rb/stat/rowned +1 -1
  1065. data/data/refe/function_source/rb/stat/s/- +1 -1
  1066. data/data/refe/function_source/rb/stat/s/alloc +1 -1
  1067. data/data/refe/function_source/rb/stat/sgid +1 -1
  1068. data/data/refe/function_source/rb/stat/size +1 -1
  1069. data/data/refe/function_source/rb/stat/sticky +1 -1
  1070. data/data/refe/function_source/rb/stat/suid +1 -1
  1071. data/data/refe/function_source/rb/stat/uid +1 -1
  1072. data/data/refe/function_source/rb/stat/w +1 -1
  1073. data/data/refe/function_source/rb/stat/x +1 -1
  1074. data/data/refe/function_source/rb/stat/z +1 -1
  1075. data/data/refe/function_source/rb/str/to/dbl +1 -1
  1076. data/data/refe/function_source/rb/str2cstr +1 -1
  1077. data/data/refe/function_source/rb/strftime +5 -6
  1078. data/data/refe/function_source/rb/sym/all/symbols +1 -1
  1079. data/data/refe/function_source/rb/symname/p +74 -0
  1080. data/data/refe/function_source/rb/sysopen +1 -1
  1081. data/data/refe/function_source/rb/syswait +1 -1
  1082. data/data/refe/function_source/rb/thread/abort/exc/- +1 -1
  1083. data/data/refe/function_source/rb/thread/abort/exc/set +1 -1
  1084. data/data/refe/function_source/rb/thread/alive/p +1 -1
  1085. data/data/refe/function_source/rb/thread/alloc +1 -1
  1086. data/data/refe/function_source/rb/thread/alone +1 -1
  1087. data/data/refe/function_source/rb/thread/aref +1 -1
  1088. data/data/refe/function_source/rb/thread/aset +1 -1
  1089. data/data/refe/function_source/rb/thread/atfork +1 -1
  1090. data/data/refe/function_source/rb/thread/check +1 -1
  1091. data/data/refe/function_source/rb/thread/cleanup +1 -1
  1092. data/data/refe/function_source/rb/thread/create +1 -1
  1093. data/data/refe/function_source/rb/thread/critical/get +1 -1
  1094. data/data/refe/function_source/rb/thread/critical/set +1 -1
  1095. data/data/refe/function_source/rb/thread/current +1 -1
  1096. data/data/refe/function_source/rb/thread/dead +1 -1
  1097. data/data/refe/function_source/rb/thread/deadlock +1 -1
  1098. data/data/refe/function_source/rb/thread/die +1 -1
  1099. data/data/refe/function_source/rb/thread/exit +1 -1
  1100. data/data/refe/function_source/rb/thread/fd/close +1 -1
  1101. data/data/refe/function_source/rb/thread/fd/writable +1 -1
  1102. data/data/refe/function_source/rb/thread/flock +7 -7
  1103. data/data/refe/function_source/rb/thread/group +1 -1
  1104. data/data/refe/function_source/rb/thread/initialize +1 -1
  1105. data/data/refe/function_source/rb/thread/inspect +1 -1
  1106. data/data/refe/function_source/rb/thread/interrupt +1 -1
  1107. data/data/refe/function_source/rb/thread/join/- +1 -1
  1108. data/data/refe/function_source/rb/thread/join/m +1 -1
  1109. data/data/refe/function_source/rb/thread/key/p +1 -1
  1110. data/data/refe/function_source/rb/thread/keys +1 -1
  1111. data/data/refe/function_source/rb/thread/kill +1 -1
  1112. data/data/refe/function_source/rb/thread/list +1 -1
  1113. data/data/refe/function_source/rb/thread/local/aref +1 -1
  1114. data/data/refe/function_source/rb/thread/local/aset +1 -1
  1115. data/data/refe/function_source/rb/thread/main/- +1 -1
  1116. data/data/refe/function_source/rb/thread/main/jump +1 -1
  1117. data/data/refe/function_source/rb/thread/pass +1 -1
  1118. data/data/refe/function_source/rb/thread/polling +1 -1
  1119. data/data/refe/function_source/rb/thread/priority/- +1 -1
  1120. data/data/refe/function_source/rb/thread/priority/set +1 -1
  1121. data/data/refe/function_source/rb/thread/raise/- +1 -1
  1122. data/data/refe/function_source/rb/thread/raise/m +1 -1
  1123. data/data/refe/function_source/rb/thread/ready +1 -1
  1124. data/data/refe/function_source/rb/thread/remove +1 -1
  1125. data/data/refe/function_source/rb/thread/restore/context +1 -1
  1126. data/data/refe/function_source/rb/thread/run +1 -1
  1127. data/data/refe/function_source/rb/thread/s/abort/exc/- +1 -1
  1128. data/data/refe/function_source/rb/thread/s/abort/exc/set +1 -1
  1129. data/data/refe/function_source/rb/thread/s/kill +1 -1
  1130. data/data/refe/function_source/rb/thread/s/new +1 -1
  1131. data/data/refe/function_source/rb/thread/safe/level +1 -1
  1132. data/data/refe/function_source/rb/thread/save/context +1 -1
  1133. data/data/refe/function_source/rb/thread/schedule +1 -1
  1134. data/data/refe/function_source/rb/thread/select +1 -1
  1135. data/data/refe/function_source/rb/thread/signal/exit +1 -1
  1136. data/data/refe/function_source/rb/thread/signal/raise +1 -1
  1137. data/data/refe/function_source/rb/thread/sleep/- +1 -1
  1138. data/data/refe/function_source/rb/thread/sleep/forever +1 -1
  1139. data/data/refe/function_source/rb/thread/start/- +1 -1
  1140. data/data/refe/function_source/rb/thread/start/0 +1 -1
  1141. data/data/refe/function_source/rb/thread/start/timer +1 -1
  1142. data/data/refe/function_source/rb/thread/status +1 -1
  1143. data/data/refe/function_source/rb/thread/stop/- +1 -1
  1144. data/data/refe/function_source/rb/thread/stop/p +1 -1
  1145. data/data/refe/function_source/rb/thread/stop/timer +1 -1
  1146. data/data/refe/function_source/rb/thread/switch +1 -1
  1147. data/data/refe/function_source/rb/thread/trap/eval +1 -1
  1148. data/data/refe/function_source/rb/thread/value +1 -1
  1149. data/data/refe/function_source/rb/thread/wait/fd +1 -1
  1150. data/data/refe/function_source/rb/thread/wait/for +1 -1
  1151. data/data/refe/function_source/rb/thread/wait/other/threads +1 -1
  1152. data/data/refe/function_source/rb/thread/wakeup +1 -1
  1153. data/data/refe/function_source/rb/thread/yield +1 -1
  1154. data/data/refe/function_source/rb/throw +1 -1
  1155. data/data/refe/function_source/rb/to/id +1 -1
  1156. data/data/refe/function_source/rb/to/int +1 -1
  1157. data/data/refe/function_source/rb/to/integer +1 -1
  1158. data/data/refe/function_source/rb/trace/eval +1 -1
  1159. data/data/refe/function_source/rb/trap/eval +1 -1
  1160. data/data/refe/function_source/rb/true +1 -1
  1161. data/data/refe/function_source/rb/undef/method +1 -1
  1162. data/data/refe/function_source/rb/values/at +1 -1
  1163. data/data/refe/function_source/rb/with/disable/interrupt +1 -1
  1164. data/data/refe/function_source/rb/write/error +1 -1
  1165. data/data/refe/function_source/rb/write/error2 +1 -1
  1166. data/data/refe/function_source/rb/yield/- +1 -1
  1167. data/data/refe/function_source/rb/yield/0 +1 -1
  1168. data/data/refe/function_source/rb/yield/splat +1 -1
  1169. data/data/refe/function_source/rb/yield/values +1 -1
  1170. data/data/refe/function_source/re/adjust/startpos +1 -1
  1171. data/data/refe/function_source/re/compile/fastmap +1 -1
  1172. data/data/refe/function_source/re/compile/pattern +1 -0
  1173. data/data/refe/function_source/re/copy/registers +1 -1
  1174. data/data/refe/function_source/re/free/pattern +1 -1
  1175. data/data/refe/function_source/re/free/registers +1 -1
  1176. data/data/refe/function_source/re/match/- +1 -1
  1177. data/data/refe/function_source/re/match/exec +1 -1
  1178. data/data/refe/function_source/re/mbcinit +1 -1
  1179. data/data/refe/function_source/re/search +1 -1
  1180. data/data/refe/function_source/read/all +1 -1
  1181. data/data/refe/function_source/read/buffered/data +5 -3
  1182. data/data/refe/function_source/read/escape +1 -1
  1183. data/data/refe/function_source/regx/options +1 -1
  1184. data/data/refe/function_source/rehash +1 -1
  1185. data/data/refe/function_source/remain/size +1 -1
  1186. data/data/refe/function_source/remove/begin +1 -1
  1187. data/data/refe/function_source/remove/trace +1 -1
  1188. data/data/refe/function_source/ret/args +1 -1
  1189. data/data/refe/function_source/return/jump +1 -1
  1190. data/data/refe/function_source/rm/final +1 -1
  1191. data/data/refe/function_source/rmext +1 -1
  1192. data/data/refe/function_source/rscheck +1 -1
  1193. data/data/refe/function_source/ruby/dup +1 -1
  1194. data/data/refe/function_source/ruby/parser/stack/on/heap +2 -2
  1195. data/data/refe/function_source/ruby/prog/init +1 -1
  1196. data/data/refe/function_source/ruby/set/stack/size +1 -1
  1197. data/data/refe/function_source/run/final +1 -1
  1198. data/data/refe/function_source/run/single/final +1 -1
  1199. data/data/refe/function_source/run/trap/eval +1 -1
  1200. data/data/refe/function_source/safe/getter +1 -1
  1201. data/data/refe/function_source/safe/setter +1 -1
  1202. data/data/refe/function_source/scan/once +1 -1
  1203. data/data/refe/function_source/scope/dup +1 -1
  1204. data/data/refe/function_source/search/required +1 -1
  1205. data/data/refe/function_source/secure/visibility +1 -1
  1206. data/data/refe/function_source/set/method/visibility +1 -1
  1207. data/data/refe/function_source/set/trace/func +1 -0
  1208. data/data/refe/function_source/sjis/startpos +1 -1
  1209. data/data/refe/function_source/skiproot +1 -1
  1210. data/data/refe/function_source/slow/match +1 -1
  1211. data/data/refe/function_source/slow/search +1 -1
  1212. data/data/refe/function_source/sort/1 +1 -1
  1213. data/data/refe/function_source/sort/2 +1 -1
  1214. data/data/refe/function_source/sort/internal +1 -1
  1215. data/data/refe/function_source/sort/unlock +1 -1
  1216. data/data/refe/function_source/special/local/set +1 -1
  1217. data/data/refe/function_source/specific/eval +1 -1
  1218. data/data/refe/function_source/splat/value +1 -1
  1219. data/data/refe/function_source/st/add/direct +1 -1
  1220. data/data/refe/function_source/st/cleanup/safe +1 -1
  1221. data/data/refe/function_source/st/copy +1 -1
  1222. data/data/refe/function_source/st/delete/- +1 -1
  1223. data/data/refe/function_source/st/delete/safe +1 -1
  1224. data/data/refe/function_source/st/foreach/- +1 -1
  1225. data/data/refe/function_source/st/free/table +1 -1
  1226. data/data/refe/function_source/st/init/numtable/- +1 -1
  1227. data/data/refe/function_source/st/init/numtable/with/size +1 -1
  1228. data/data/refe/function_source/st/init/strtable/- +1 -1
  1229. data/data/refe/function_source/st/init/strtable/with/size +1 -1
  1230. data/data/refe/function_source/st/init/table/- +1 -1
  1231. data/data/refe/function_source/st/init/table/with/size +1 -1
  1232. data/data/refe/function_source/st/insert +1 -1
  1233. data/data/refe/function_source/st/lookup +1 -1
  1234. data/data/refe/function_source/stack/check +1 -1
  1235. data/data/refe/function_source/stack/extend +1 -1
  1236. data/data/refe/function_source/stat/col +1 -1
  1237. data/data/refe/function_source/stat/new/- +1 -1
  1238. data/data/refe/function_source/stat/new/0 +1 -1
  1239. data/data/refe/function_source/stdout/setter +1 -1
  1240. data/data/refe/function_source/store/jump/- +1 -1
  1241. data/data/refe/function_source/store/jump/n +1 -1
  1242. data/data/refe/function_source/str/to/id +1 -1
  1243. data/data/refe/function_source/strhash +1 -1
  1244. data/data/refe/function_source/sv/i +1 -1
  1245. data/data/refe/function_source/svalue/to/avalue +1 -1
  1246. data/data/refe/function_source/svalue/to/mrhs +1 -1
  1247. data/data/refe/function_source/swallow +1 -1
  1248. data/data/refe/function_source/sym/inspect +2 -2
  1249. data/data/refe/function_source/sym/to/i +1 -1
  1250. data/data/refe/function_source/sym/to/int +1 -1
  1251. data/data/refe/function_source/sym/to/s +1 -1
  1252. data/data/refe/function_source/sym/to/sym +1 -1
  1253. data/data/refe/function_source/symbols/i +1 -1
  1254. data/data/refe/function_source/sys/fail2 +1 -1
  1255. data/data/refe/function_source/terminate/process +1 -1
  1256. data/data/refe/function_source/test/-r +1 -1
  1257. data/data/refe/function_source/test/-s +1 -1
  1258. data/data/refe/function_source/test/-w +1 -1
  1259. data/data/refe/function_source/test/-x +1 -1
  1260. data/data/refe/function_source/test/b +1 -1
  1261. data/data/refe/function_source/test/c +1 -1
  1262. data/data/refe/function_source/test/check +1 -1
  1263. data/data/refe/function_source/test/d +1 -1
  1264. data/data/refe/function_source/test/e +1 -1
  1265. data/data/refe/function_source/test/f +1 -1
  1266. data/data/refe/function_source/test/grpowned +1 -1
  1267. data/data/refe/function_source/test/identical +48 -0
  1268. data/data/refe/function_source/test/l +1 -1
  1269. data/data/refe/function_source/test/owned +1 -1
  1270. data/data/refe/function_source/test/p +1 -1
  1271. data/data/refe/function_source/test/r +1 -1
  1272. data/data/refe/function_source/test/rowned +1 -1
  1273. data/data/refe/function_source/test/s +1 -1
  1274. data/data/refe/function_source/test/sgid +1 -1
  1275. data/data/refe/function_source/test/sticky +1 -1
  1276. data/data/refe/function_source/test/suid +1 -1
  1277. data/data/refe/function_source/test/w +1 -1
  1278. data/data/refe/function_source/test/x +1 -1
  1279. data/data/refe/function_source/test/z +1 -1
  1280. data/data/refe/function_source/thgroup/add +1 -1
  1281. data/data/refe/function_source/thgroup/enclose +2 -2
  1282. data/data/refe/function_source/thgroup/enclosed/p +1 -1
  1283. data/data/refe/function_source/thgroup/list +1 -1
  1284. data/data/refe/function_source/thgroup/s/alloc +1 -1
  1285. data/data/refe/function_source/thread/free +1 -1
  1286. data/data/refe/function_source/thread/keys/i +1 -1
  1287. data/data/refe/function_source/thread/mark +1 -1
  1288. data/data/refe/function_source/thread/reset/raised +1 -1
  1289. data/data/refe/function_source/thread/set/raised +1 -1
  1290. data/data/refe/function_source/thread/status/name +1 -1
  1291. data/data/refe/function_source/thread/timer +1 -1
  1292. data/data/refe/function_source/time/add +1 -1
  1293. data/data/refe/function_source/time/asctime +1 -1
  1294. data/data/refe/function_source/time/dup +1 -1
  1295. data/data/refe/function_source/time/get/tm +1 -1
  1296. data/data/refe/function_source/time/getgmtime +1 -1
  1297. data/data/refe/function_source/time/getlocaltime +1 -1
  1298. data/data/refe/function_source/time/gmtime +1 -1
  1299. data/data/refe/function_source/time/hour +1 -1
  1300. data/data/refe/function_source/time/init/copy +1 -1
  1301. data/data/refe/function_source/time/isdst +1 -1
  1302. data/data/refe/function_source/time/localtime +1 -1
  1303. data/data/refe/function_source/time/mday +1 -1
  1304. data/data/refe/function_source/time/min +1 -1
  1305. data/data/refe/function_source/time/minus +1 -1
  1306. data/data/refe/function_source/time/mon +1 -1
  1307. data/data/refe/function_source/time/overflow/p +1 -1
  1308. data/data/refe/function_source/time/plus +1 -1
  1309. data/data/refe/function_source/time/sec +1 -1
  1310. data/data/refe/function_source/time/strftime +5 -5
  1311. data/data/refe/function_source/time/succ +1 -1
  1312. data/data/refe/function_source/time/to/a +1 -1
  1313. data/data/refe/function_source/time/to/s +1 -1
  1314. data/data/refe/function_source/time/utc/offset +1 -1
  1315. data/data/refe/function_source/time/wday +1 -1
  1316. data/data/refe/function_source/time/yday +1 -1
  1317. data/data/refe/function_source/time/year +1 -1
  1318. data/data/refe/function_source/time/zone +1 -1
  1319. data/data/refe/function_source/timeofday +1 -1
  1320. data/data/refe/function_source/tokadd/- +1 -1
  1321. data/data/refe/function_source/tokadd/escape +1 -1
  1322. data/data/refe/function_source/tokadd/string +1 -1
  1323. data/data/refe/function_source/top/include +1 -1
  1324. data/data/refe/function_source/top/local/init +1 -1
  1325. data/data/refe/function_source/top/local/setup +2 -2
  1326. data/data/refe/function_source/top/private +1 -1
  1327. data/data/refe/function_source/top/public +1 -1
  1328. data/data/refe/function_source/trace/en +1 -1
  1329. data/data/refe/function_source/trace/ev +1 -1
  1330. data/data/refe/function_source/true/and +1 -1
  1331. data/data/refe/function_source/true/or +1 -1
  1332. data/data/refe/function_source/true/to/s +1 -1
  1333. data/data/refe/function_source/true/xor +1 -1
  1334. data/data/refe/function_source/umethod/bind +14 -4
  1335. data/data/refe/function_source/undefine/final +1 -1
  1336. data/data/refe/function_source/uninitialized/constant +1 -1
  1337. data/data/refe/function_source/unknown/node +10 -2
  1338. data/data/refe/function_source/unlink/internal +4 -2
  1339. data/data/refe/function_source/utf8/startpos +1 -1
  1340. data/data/refe/function_source/utime/internal +4 -3
  1341. data/data/refe/function_source/vafuncall +1 -1
  1342. data/data/refe/function_source/value/expr0 +1 -1
  1343. data/data/refe/function_source/vms/fileact +1 -1
  1344. data/data/refe/function_source/vms/fisexh +1 -1
  1345. data/data/refe/function_source/void/expr0 +1 -1
  1346. data/data/refe/function_source/void/stmts +1 -1
  1347. data/data/refe/function_source/w32/io/info +32 -0
  1348. data/data/refe/function_source/warn/unless/e/option +1 -1
  1349. data/data/refe/function_source/warning/unless/e/option +1 -1
  1350. data/data/refe/function_source/whole/match/p +1 -1
  1351. data/data/refe/function_source/win32/get/exception/list +1 -1
  1352. data/data/refe/function_source/win32/set/exception/list +1 -1
  1353. data/data/refe/function_source/wsplit/p +1 -1
  1354. data/data/refe/function_source/yield/under/- +1 -1
  1355. data/data/refe/function_source/yield/under/i +1 -1
  1356. data/data/refe/function_source/yycompile +1 -1
  1357. data/data/refe/function_source/yyerror +1 -1
  1358. data/data/refe/function_source/yylex +17 -3
  1359. data/data/refe/function_source/yyparse +2905 -0
  1360. data/data/refe/function_source/yystpcpy +1 -1
  1361. data/data/refe/function_source/yystrlen +1 -1
  1362. data/data/refe/function_source_comp +12 -4
  1363. data/data/refe/method_document/-cipher%2e/new +4 -2
  1364. data/data/refe/method_document/-kernel%2e/-a-r-g-f +8 -0
  1365. data/data/refe/method_document/-kernel%2e/-a-r-g-v +5 -0
  1366. data/data/refe/method_document/-kernel%2e/-d-a-t-a +17 -0
  1367. data/data/refe/method_document/-kernel%2e/-e-n-v +5 -0
  1368. data/data/refe/method_document/-kernel%2e/-f-a-l-s-e +5 -0
  1369. data/data/refe/method_document/-kernel%2e/-n-i-l +5 -0
  1370. data/data/refe/method_document/-kernel%2e/-p-l-a-t-f-o-r-m +9 -0
  1371. data/data/refe/method_document/-kernel%2e/-r-e-l-e-a-s-e_-d-a-t-e +9 -0
  1372. data/data/refe/method_document/-kernel%2e/-r-u-b-y_-p-l-a-t-f-o-r-m +4 -0
  1373. data/data/refe/method_document/-kernel%2e/-r-u-b-y_-r-e-l-e-a-s-e_-d-a-t-e +4 -0
  1374. data/data/refe/method_document/-kernel%2e/-r-u-b-y_-v-e-r-s-i-o-n +18 -0
  1375. data/data/refe/method_document/-kernel%2e/-s-c-r-i-p-t_-l-i-n-e-s__ +29 -0
  1376. data/data/refe/method_document/-kernel%2e/-s-t-d-e-r-r +4 -0
  1377. data/data/refe/method_document/-kernel%2e/-s-t-d-i-n +4 -0
  1378. data/data/refe/method_document/-kernel%2e/-s-t-d-o-u-t +4 -0
  1379. data/data/refe/method_document/-kernel%2e/-t-o-p-l-e-v-e-l_-b-i-n-d-i-n-g +4 -0
  1380. data/data/refe/method_document/-kernel%2e/-t-r-u-e +6 -0
  1381. data/data/refe/method_document/-kernel%2e/-v-e-r-s-i-o-n +9 -0
  1382. data/data/refe/method_document/-module%23/constants +1 -1
  1383. data/data/refe/method_document/-numeric%23/ceil +97 -3
  1384. data/data/refe/method_document/-numeric%23/div +47 -3
  1385. data/data/refe/method_document/-numeric%23/divmod +37 -10
  1386. data/data/refe/method_document/-numeric%23/floor +97 -3
  1387. data/data/refe/method_document/-numeric%23/modulo +62 -6
  1388. data/data/refe/method_document/-numeric%23/quo +44 -3
  1389. data/data/refe/method_document/-numeric%23/remainder +51 -4
  1390. data/data/refe/method_document/-numeric%23/round +97 -3
  1391. data/data/refe/method_document/-numeric%23/step +16 -2
  1392. data/data/refe/method_document/-numeric%23/truncate +97 -3
  1393. data/data/refe/method_document/-open-s-s-l%3a%3a-cipher%3a%3a-cipher%23/decrypt +2 -0
  1394. data/data/refe/method_document/-open-s-s-l%3a%3a-cipher%3a%3a-cipher%23/encrypt +2 -0
  1395. data/data/refe/method_document/-string%23/sub +1 -1
  1396. data/data/refe/method_document/-string%23/sub%21 +1 -1
  1397. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/%5b%5d +0 -0
  1398. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/%5b%5d%3d +0 -0
  1399. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/each +0 -0
  1400. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/each_pair +0 -0
  1401. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/length +0 -0
  1402. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/members +0 -0
  1403. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/size +0 -0
  1404. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/to_a +0 -0
  1405. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/values +0 -0
  1406. data/data/refe/method_document/{-struct%23 → -struct%3a%3a-x-x-x%23}/values_at +0 -0
  1407. data/data/refe/method_document/man%2e/constants +132 -0
  1408. data/data/refe/method_document/man%2e/functions +1210 -0
  1409. data/data/refe/method_document/man%2e/hostname +14 -0
  1410. data/data/refe/method_document/man%2e/servname +6 -0
  1411. data/data/refe/method_document/man%2e/sockaddr +22 -0
  1412. data/data/refe/method_document/man%2e/variables +533 -0
  1413. data/data/refe/method_document_comp +35 -10
  1414. data/data/refe/mf_relation/-file%2e/identical%3f +1 -0
  1415. data/data/refe/mf_relation/-file-test%2e/identical%3f +1 -0
  1416. data/data/refe/mf_relation/-object%23/respond_to%3f +1 -1
  1417. data/data/refe/mf_relation_comp +2 -0
  1418. data/lib/refe/info.rb +1 -1
  1419. data/lib/refe/rubyrefmparser.rb +39 -7
  1420. metadata +10453 -10410
  1421. data/data/refe/function_source/yy/reduce/print +0 -18
  1422. data/data/refe/function_source/yy/stack/print +0 -15
  1423. data/data/refe/function_source/yydestruct +0 -25
  1424. data/data/refe/function_source/yysymprint +0 -31
@@ -1,4 +1,4 @@
1
- --- step(limit) {|n| ... } ruby 1.7 feature
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
- round, to_i, ceil,
6
- floor �⻲�ȡ�
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
 
@@ -1,3 +1,5 @@
1
1
  --- decrypt(pass, iv)
2
2
  ���沽�ν����򤹤롣iv �� initialization vector��ɬ�פʤ���Ѥ���롣
3
+ ����API�˰������Ϥ��ΤϿ侩���ʤ����ѥ���ɤ��鸰������������ϡ�
4
+ pkcs5_keyivgen����Ѥ��뤳�ȡ�
3
5
 
@@ -1,3 +1,5 @@
1
1
  --- encrypt(pass, iv)
2
2
  �Ź沽�ν����򤹤롣iv �� initialization vector��ɬ�פʤ���Ѥ���롣
3
+ ����API�˰������Ϥ��ΤϿ侩���ʤ����ѥ���ɤ��鸰������������ϡ�
4
+ pkcs5_keyivgen����Ѥ��뤳�ȡ�
3
5
 
@@ -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 �ʹߤϡ�����ʸ��
@@ -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 ���֤��ޤ���