Documentation AOSE01
Documentation AOSE01
6 release
Configuration changes
default C flags
vendor_ruby directory
If you are a package maintainer, make each library package configure the library
passing the ‘–vendor’ option to ‘extconf.rb’ so that the library files will get
installed under ‘vendor_ruby’.
You can change the directory locations using configure options such as ‘–with-
sitedir=DIR’ and ‘–with-vendordir=DIR’.
Global constants
new constants
RUBY_COPYRIGHT
RUBY_DESCRIPTION
securerandom
builtin classes
Array#flatten
Array#flatten!
Array#eql?
Array#hash
Array#==
Array#<=>
Array#index
Array#rindex
Array#map!
Array#each
Array#each_index
Array#reverse_each
Array#reject
Array#reject!
Array#delete_if
Array#select
Note that map and collect still return an array unlike Ruby 1.9 to keep
compatibility.
Array#pop
Array#shift
Array#choice
Array#combination
Array#cycle
Array#drop
Array#drop_while
Array#permutation
Array#product
Array#shuffle
Array#shuffle!
Array#take,
Array#take_while
New methods.
Binding#eval
New method.
Dir#each
Dir#foreach
Enumerable::Enumerator
Enumerable#each_slice
Enumerable#each_cons
Object#to_enum
Object#enum_for
Enumerable#count
Enumerable#cycle
Enumerable#drop
Enumerable#drop_while
Enumerable#find_index
Enumerable#first
Enumerable#group_by
Enumerable#max_by
Enumerable#min_by
Enumerable#minmax
Enumerable#minmax_by
Enumerable#none?
Enumerable#one?
Enumerable#take
Enumerable#take_while
New methods.
Enumerable#find
Enumerable#find_all
Enumerable#partition
Enumerable#reject
Enumerable#select
Enumerable#sort_by
Note that map and collect still return an array unlike Ruby 1.9 to keep
compatibility.
Enumerable#inject
Enumerable#reduce
Enumerable#to_a
Hash#eql?
Hash#hash
Hash#==
Hash#delete_if
Hash#each
Hash#each_key
Hash#each_pair
Hash#each_value
Hash#reject!
Hash#select
ENV.delete_if
ENV.each
ENV.each_key
ENV.each_pair
ENV.each_value
ENV.reject!
ENV.select
GC.stress
GC.stress=
New methods.
Integer#ord
Integer#odd?
Integer#even?
Integer#pred
New methods.
Integer#downto
Integer#times
Integer#upto
IO#each
IO#each_line
IO#each_byte
IO.foreach
ARGF.each
ARGF.each_line
ARGF.each_byte
IO#bytes
IO#chars
IO#each_char
IO#getbyte
IO#lines
IO#readbyte
ARGF.bytes
ARGF.chars
ARGF.each_char
ARGF.getbyte
ARGF.lines
ARGF.readbyte
New methods.
Method#name
Method#owner
Method#receiver
UnboundMethod#name
UnboundMethod#owner
New methods.
Module#class_exec
Module#module_exec
New methods.
Numeric#step
Object#instance_exec
Object#tap
New methods.
ObjectSpace.each_object
Process.exec implemented.
Range#each
Range#step
String#bytes
New method
String#bytesize
New method, returning the size in bytes. (alias length and size)
String#chars
String#each_char
String#lines
String#partition
String#rpartition
String#start_with?
String#end_with?
New methods. These are $KCODE aware unlike index, rindex and include?.
String#each_byte
String#each
String#each_line
String#gsub(pattern)
String#upto
StopIteration
New exception class that causes Kernel#loop to stop iteration when raised.
Struct#each
Struct#each_pair
Symbol#to_proc
New method.
__method__
New global function that returns the name of the current method as a Symbol.
enumerator
Enumerator is now a built-in module. The next and rewind methods are implemented
using the “generator” library. Use with care and be aware of the performance loss.