Mercurial > repos > other > SevenLanguagesInSevenWeeks
comparison 1-Ruby/object-all-things-2-ruby.output @ 6:a50d2fac49ce
Add some experiments of what different objects are and what functions they have
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 02 Jan 2017 20:45:34 +0000 |
parents | |
children | b8f4577db289 |
comparison
equal
deleted
inserted
replaced
5:2b423d86da51 | 6:a50d2fac49ce |
---|---|
1 4 (Fixnum) | |
2 to_s | |
3 inspect | |
4 -@ | |
5 + | |
6 - | |
7 * | |
8 / | |
9 div | |
10 % | |
11 modulo | |
12 divmod | |
13 fdiv | |
14 ** | |
15 abs | |
16 magnitude | |
17 == | |
18 === | |
19 <=> | |
20 > | |
21 >= | |
22 < | |
23 <= | |
24 ~ | |
25 & | |
26 | | |
27 ^ | |
28 [] | |
29 << | |
30 >> | |
31 to_f | |
32 size | |
33 bit_length | |
34 zero? | |
35 odd? | |
36 even? | |
37 succ | |
38 integer? | |
39 upto | |
40 downto | |
41 times | |
42 next | |
43 pred | |
44 chr | |
45 ord | |
46 to_i | |
47 to_int | |
48 floor | |
49 ceil | |
50 truncate | |
51 round | |
52 gcd | |
53 lcm | |
54 gcdlcm | |
55 numerator | |
56 denominator | |
57 to_r | |
58 rationalize | |
59 singleton_method_added | |
60 coerce | |
61 i | |
62 +@ | |
63 eql? | |
64 remainder | |
65 real? | |
66 nonzero? | |
67 step | |
68 quo | |
69 to_c | |
70 real | |
71 imaginary | |
72 imag | |
73 abs2 | |
74 arg | |
75 angle | |
76 phase | |
77 rectangular | |
78 rect | |
79 polar | |
80 conjugate | |
81 conj | |
82 between? | |
83 nil? | |
84 =~ | |
85 !~ | |
86 hash | |
87 class | |
88 singleton_class | |
89 clone | |
90 dup | |
91 taint | |
92 tainted? | |
93 untaint | |
94 untrust | |
95 untrusted? | |
96 trust | |
97 freeze | |
98 frozen? | |
99 methods | |
100 singleton_methods | |
101 protected_methods | |
102 private_methods | |
103 public_methods | |
104 instance_variables | |
105 instance_variable_get | |
106 instance_variable_set | |
107 instance_variable_defined? | |
108 remove_instance_variable | |
109 instance_of? | |
110 kind_of? | |
111 is_a? | |
112 tap | |
113 send | |
114 public_send | |
115 respond_to? | |
116 extend | |
117 display | |
118 method | |
119 public_method | |
120 singleton_method | |
121 define_singleton_method | |
122 object_id | |
123 to_enum | |
124 enum_for | |
125 equal? | |
126 ! | |
127 != | |
128 instance_eval | |
129 instance_exec | |
130 __send__ | |
131 __id__ | |
132 3.14 (Float) | |
133 to_s | |
134 inspect | |
135 coerce | |
136 -@ | |
137 + | |
138 - | |
139 * | |
140 / | |
141 quo | |
142 fdiv | |
143 % | |
144 modulo | |
145 divmod | |
146 ** | |
147 == | |
148 === | |
149 <=> | |
150 > | |
151 >= | |
152 < | |
153 <= | |
154 eql? | |
155 hash | |
156 to_f | |
157 abs | |
158 magnitude | |
159 zero? | |
160 to_i | |
161 to_int | |
162 floor | |
163 ceil | |
164 round | |
165 truncate | |
166 nan? | |
167 infinite? | |
168 finite? | |
169 numerator | |
170 denominator | |
171 to_r | |
172 rationalize | |
173 arg | |
174 angle | |
175 phase | |
176 singleton_method_added | |
177 i | |
178 +@ | |
179 div | |
180 remainder | |
181 real? | |
182 integer? | |
183 nonzero? | |
184 step | |
185 to_c | |
186 real | |
187 imaginary | |
188 imag | |
189 abs2 | |
190 rectangular | |
191 rect | |
192 polar | |
193 conjugate | |
194 conj | |
195 between? | |
196 nil? | |
197 =~ | |
198 !~ | |
199 class | |
200 singleton_class | |
201 clone | |
202 dup | |
203 taint | |
204 tainted? | |
205 untaint | |
206 untrust | |
207 untrusted? | |
208 trust | |
209 freeze | |
210 frozen? | |
211 methods | |
212 singleton_methods | |
213 protected_methods | |
214 private_methods | |
215 public_methods | |
216 instance_variables | |
217 instance_variable_get | |
218 instance_variable_set | |
219 instance_variable_defined? | |
220 remove_instance_variable | |
221 instance_of? | |
222 kind_of? | |
223 is_a? | |
224 tap | |
225 send | |
226 public_send | |
227 respond_to? | |
228 extend | |
229 display | |
230 method | |
231 public_method | |
232 singleton_method | |
233 define_singleton_method | |
234 object_id | |
235 to_enum | |
236 enum_for | |
237 equal? | |
238 ! | |
239 != | |
240 instance_eval | |
241 instance_exec | |
242 __send__ | |
243 __id__ | |
244 Pi (String) | |
245 <=> | |
246 == | |
247 === | |
248 eql? | |
249 hash | |
250 casecmp | |
251 + | |
252 * | |
253 % | |
254 [] | |
255 []= | |
256 insert | |
257 length | |
258 size | |
259 bytesize | |
260 empty? | |
261 =~ | |
262 match | |
263 succ | |
264 succ! | |
265 next | |
266 next! | |
267 upto | |
268 index | |
269 rindex | |
270 replace | |
271 clear | |
272 chr | |
273 getbyte | |
274 setbyte | |
275 byteslice | |
276 scrub | |
277 scrub! | |
278 freeze | |
279 to_i | |
280 to_f | |
281 to_s | |
282 to_str | |
283 inspect | |
284 dump | |
285 upcase | |
286 downcase | |
287 capitalize | |
288 swapcase | |
289 upcase! | |
290 downcase! | |
291 capitalize! | |
292 swapcase! | |
293 hex | |
294 oct | |
295 split | |
296 lines | |
297 bytes | |
298 chars | |
299 codepoints | |
300 reverse | |
301 reverse! | |
302 concat | |
303 << | |
304 prepend | |
305 crypt | |
306 intern | |
307 to_sym | |
308 ord | |
309 include? | |
310 start_with? | |
311 end_with? | |
312 scan | |
313 ljust | |
314 rjust | |
315 center | |
316 sub | |
317 gsub | |
318 chop | |
319 chomp | |
320 strip | |
321 lstrip | |
322 rstrip | |
323 sub! | |
324 gsub! | |
325 chop! | |
326 chomp! | |
327 strip! | |
328 lstrip! | |
329 rstrip! | |
330 tr | |
331 tr_s | |
332 delete | |
333 squeeze | |
334 count | |
335 tr! | |
336 tr_s! | |
337 delete! | |
338 squeeze! | |
339 each_line | |
340 each_byte | |
341 each_char | |
342 each_codepoint | |
343 sum | |
344 slice | |
345 slice! | |
346 partition | |
347 rpartition | |
348 encoding | |
349 force_encoding | |
350 b | |
351 valid_encoding? | |
352 ascii_only? | |
353 unpack | |
354 encode | |
355 encode! | |
356 to_r | |
357 to_c | |
358 > | |
359 >= | |
360 < | |
361 <= | |
362 between? | |
363 nil? | |
364 !~ | |
365 class | |
366 singleton_class | |
367 clone | |
368 dup | |
369 taint | |
370 tainted? | |
371 untaint | |
372 untrust | |
373 untrusted? | |
374 trust | |
375 frozen? | |
376 methods | |
377 singleton_methods | |
378 protected_methods | |
379 private_methods | |
380 public_methods | |
381 instance_variables | |
382 instance_variable_get | |
383 instance_variable_set | |
384 instance_variable_defined? | |
385 remove_instance_variable | |
386 instance_of? | |
387 kind_of? | |
388 is_a? | |
389 tap | |
390 send | |
391 public_send | |
392 respond_to? | |
393 extend | |
394 display | |
395 method | |
396 public_method | |
397 singleton_method | |
398 define_singleton_method | |
399 object_id | |
400 to_enum | |
401 enum_for | |
402 equal? | |
403 ! | |
404 != | |
405 instance_eval | |
406 instance_exec | |
407 __send__ | |
408 __id__ | |
409 π (String) | |
410 <=> | |
411 == | |
412 === | |
413 eql? | |
414 hash | |
415 casecmp | |
416 + | |
417 * | |
418 % | |
419 [] | |
420 []= | |
421 insert | |
422 length | |
423 size | |
424 bytesize | |
425 empty? | |
426 =~ | |
427 match | |
428 succ | |
429 succ! | |
430 next | |
431 next! | |
432 upto | |
433 index | |
434 rindex | |
435 replace | |
436 clear | |
437 chr | |
438 getbyte | |
439 setbyte | |
440 byteslice | |
441 scrub | |
442 scrub! | |
443 freeze | |
444 to_i | |
445 to_f | |
446 to_s | |
447 to_str | |
448 inspect | |
449 dump | |
450 upcase | |
451 downcase | |
452 capitalize | |
453 swapcase | |
454 upcase! | |
455 downcase! | |
456 capitalize! | |
457 swapcase! | |
458 hex | |
459 oct | |
460 split | |
461 lines | |
462 bytes | |
463 chars | |
464 codepoints | |
465 reverse | |
466 reverse! | |
467 concat | |
468 << | |
469 prepend | |
470 crypt | |
471 intern | |
472 to_sym | |
473 ord | |
474 include? | |
475 start_with? | |
476 end_with? | |
477 scan | |
478 ljust | |
479 rjust | |
480 center | |
481 sub | |
482 gsub | |
483 chop | |
484 chomp | |
485 strip | |
486 lstrip | |
487 rstrip | |
488 sub! | |
489 gsub! | |
490 chop! | |
491 chomp! | |
492 strip! | |
493 lstrip! | |
494 rstrip! | |
495 tr | |
496 tr_s | |
497 delete | |
498 squeeze | |
499 count | |
500 tr! | |
501 tr_s! | |
502 delete! | |
503 squeeze! | |
504 each_line | |
505 each_byte | |
506 each_char | |
507 each_codepoint | |
508 sum | |
509 slice | |
510 slice! | |
511 partition | |
512 rpartition | |
513 encoding | |
514 force_encoding | |
515 b | |
516 valid_encoding? | |
517 ascii_only? | |
518 unpack | |
519 encode | |
520 encode! | |
521 to_r | |
522 to_c | |
523 > | |
524 >= | |
525 < | |
526 <= | |
527 between? | |
528 nil? | |
529 !~ | |
530 class | |
531 singleton_class | |
532 clone | |
533 dup | |
534 taint | |
535 tainted? | |
536 untaint | |
537 untrust | |
538 untrusted? | |
539 trust | |
540 frozen? | |
541 methods | |
542 singleton_methods | |
543 protected_methods | |
544 private_methods | |
545 public_methods | |
546 instance_variables | |
547 instance_variable_get | |
548 instance_variable_set | |
549 instance_variable_defined? | |
550 remove_instance_variable | |
551 instance_of? | |
552 kind_of? | |
553 is_a? | |
554 tap | |
555 send | |
556 public_send | |
557 respond_to? | |
558 extend | |
559 display | |
560 method | |
561 public_method | |
562 singleton_method | |
563 define_singleton_method | |
564 object_id | |
565 to_enum | |
566 enum_for | |
567 equal? | |
568 ! | |
569 != | |
570 instance_eval | |
571 instance_exec | |
572 __send__ | |
573 __id__ |