Blogged by Ujihisa. Standard methods of programming and thoughts including Clojure, Vim, LLVM, Haskell, Ruby and Mathematics written by a Japanese programmer. github/ujihisa

Thursday, April 15, 2010

Public Methods of Kernel on Ruby 1.9 and 1.8

The stable version of MRI 1.9.2 will be released soon. Let's compare the differences between the latest ruby and the legacy ruby.

Here this is the diff of the public methods of Kernel class on ruby 1.9.2dev and 1.8.7. I just used such command: ruby -ve 'puts Kernel.public_methods.sort'.

--- /tmp/187.txt 2010-04-15 14:01:45.000000000 -0700
+++ /tmp/192.txt 2010-04-15 14:01:33.000000000 -0700
@@ -1,4 +1,7 @@
-ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin9]
+ruby 1.9.2dev (2010-04-02 trunk 27162) [i386-darwin9.8.0]
+!
+!=
+!~
<
<=
<=>
@@ -8,9 +11,12 @@
>
>=
Array
+Complex
Float
Integer
+Rational
String
+__callee__
__id__
__method__
__send__
@@ -22,17 +28,14 @@
autoload?
binding
block_given?
-callcc
caller
catch
-chomp
-chomp!
-chop
-chop!
class
class_eval
class_exec
class_variable_defined?
+class_variable_get
+class_variable_set
class_variables
clone
const_defined?
@@ -40,6 +43,7 @@
const_missing
const_set
constants
+define_singleton_method
display
dup
enum_for
@@ -55,15 +59,13 @@
format
freeze
frozen?
-getc
gets
global_variables
-gsub
-gsub!
hash
-id
include?
included_modules
+initialize_clone
+initialize_dup
inspect
instance_eval
instance_exec
@@ -83,7 +85,6 @@
loop
method
method_defined?
-method_missing
methods
module_eval
module_exec
@@ -103,28 +104,32 @@
protected_method_defined?
protected_methods
public_class_method
+public_instance_method
public_instance_methods
+public_method
public_method_defined?
public_methods
+public_send
putc
puts
raise
rand
readline
readlines
+remove_class_variable
require
+require_relative
respond_to?
-scan
+respond_to_missing?
select
send
set_trace_func
+singleton_class
singleton_methods
sleep
-split
+spawn
sprintf
srand
-sub
-sub!
syscall
system
taint
@@ -132,12 +137,13 @@
tap
test
throw
-to_a
to_enum
to_s
trace_var
trap
-type
+trust
untaint
untrace_var
+untrust
+untrusted?
warn
view raw gistfile1.txt hosted with ❤ by GitHub

Followers