2002-03-27 00:28:00 -05:00
|
|
|
: IO#sysseek
|
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-03-21 23:55:03 -05:00
|
|
|
: BigFloat
|
|
|
|
|
|
|
|
Imported courtesy of Shigeo Kobayashi. Variable precision extension
|
|
|
|
library.
|
|
|
|
|
2002-03-19 04:03:11 -05:00
|
|
|
: IO
|
|
|
|
|
|
|
|
64bit off_t support by Janathan Baker.
|
|
|
|
|
|
|
|
: abort()
|
|
|
|
|
|
|
|
optional terminate message argument.
|
|
|
|
|
2002-03-14 08:26:28 -05:00
|
|
|
: iconv module
|
|
|
|
|
|
|
|
Imported. Wrapper library of (({iconv})).
|
|
|
|
|
2002-03-13 05:11:09 -05:00
|
|
|
: Dir::glob
|
2002-03-13 04:44:59 -05:00
|
|
|
|
2002-03-13 05:11:09 -05:00
|
|
|
Now accepts optional FNM_* flags via the second argument, whereas
|
|
|
|
Dir::[] doesn't.
|
|
|
|
|
|
|
|
Dir.glob("makefile", File::FNM_CASEFOLD) #=> ['Makefile', 'makefile']
|
2002-03-13 04:44:59 -05:00
|
|
|
|
2002-03-25 21:03:04 -05:00
|
|
|
: fileutils module
|
|
|
|
|
|
|
|
Imported. File utility library.
|
|
|
|
|
2002-03-22 02:34:00 -05:00
|
|
|
: racc runtime module
|
|
|
|
|
2002-03-25 21:03:04 -05:00
|
|
|
Imported. Racc runtime library. (Racc is a parser generator for ruby)
|
2002-03-22 02:34:00 -05:00
|
|
|
|
2002-03-11 10:29:50 -05:00
|
|
|
: tsort module
|
2002-03-11 10:22:24 -05:00
|
|
|
|
2002-03-11 10:29:50 -05:00
|
|
|
Imported. Topological sorting library.
|
2002-03-11 10:22:24 -05:00
|
|
|
|
2002-03-11 07:55:52 -05:00
|
|
|
: stringio module
|
|
|
|
|
|
|
|
Imported. Pseudo (({IO})) class from/to (({String})).
|
|
|
|
|
2002-03-22 02:34:00 -05:00
|
|
|
: strscan module
|
|
|
|
|
|
|
|
Imported. Fast string scanner library.
|
|
|
|
|
2002-02-18 04:52:48 -05:00
|
|
|
: Array#pack, String#unpack
|
|
|
|
|
|
|
|
allows comment in template strings.
|
|
|
|
|
|
|
|
: Array#pack, String#unpack
|
|
|
|
|
|
|
|
new templates 'q' and 'Q' for 64bit integer (signed and unsigned respectively).
|
|
|
|
|
2002-01-28 03:44:45 -05:00
|
|
|
: Array#fill
|
|
|
|
|
|
|
|
takes block to get the values to fill.
|
|
|
|
|
|
|
|
: Array#new
|
|
|
|
|
|
|
|
takes block to get the values to fill.
|
|
|
|
|
2002-01-25 03:22:11 -05:00
|
|
|
: Array#fetch
|
|
|
|
|
|
|
|
takes block to get the default value.
|
|
|
|
|
|
|
|
: Hash#update
|
|
|
|
|
|
|
|
takes block to resolve key conflict.
|
|
|
|
|
2002-01-23 02:30:43 -05:00
|
|
|
: IO#fsync
|
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Array expansion
|
2002-01-11 04:18:54 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Fixed with the following behavior:
|
2002-01-11 04:18:54 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
a = *[1]
|
|
|
|
p a #=> [1]
|
2002-01-11 04:18:54 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Now 1-element array in rhs is expanded properly.
|
2002-01-11 04:18:54 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
a = *[1]
|
|
|
|
p a #=> 1
|
2001-12-21 04:23:28 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: allocation framework
|
2001-12-21 04:23:28 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
any instance of class can be allocated by class.allocate,
|
|
|
|
(except a few classes).
|
2001-12-21 04:23:28 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: break and next
|
2001-12-21 04:23:28 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Extended to take an optional expression, which is used as a value
|
|
|
|
for termination. [experimental]
|
2001-11-26 07:00:40 -05:00
|
|
|
|
2002-01-11 06:24:11 -05:00
|
|
|
: comparison of exception classes in a rescue clause
|
|
|
|
|
|
|
|
Changed to use Module#=== for comparing $! with the exception
|
|
|
|
class specified in each rescue clause.
|
|
|
|
|
|
|
|
As the previous behavior was to use kind_of?, the effect is limited
|
|
|
|
to the SystemCallError case. SystemCallError.=== has been newly
|
|
|
|
defined to return true when the two have the same errno. With this
|
|
|
|
change, SystemCallError's with the same errno, such as Errno::EAGAIN
|
|
|
|
and Errno::EWOULDBLOCK, can both be rescued by listing just one of
|
|
|
|
them.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: constants lookup
|
2001-11-26 07:00:40 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Improved at the performance of searching by using an internal hash
|
|
|
|
table.
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: expression parenthesis in the first argument
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Experimentally altered to get the following code (note the space
|
|
|
|
after p):
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
p ("xx"*2).to_i
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Interpreted as:
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
p (("xx"*2).to_i)
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Instead of:
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
(p("xx"*2)).to_i
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 06:24:11 -05:00
|
|
|
: implicit comparison in conditional expressions
|
|
|
|
|
|
|
|
is obsoleted except when it is used in -e.
|
|
|
|
|
|
|
|
: between Range and $.
|
|
|
|
Use explicit comparison instead.
|
|
|
|
|
|
|
|
: between Regexp and $_
|
|
|
|
Use the unary method ~/re/ instead.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: to_str
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added to get objects which define to_str() treated as String's.
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Now almost all the built-in methods try each argument with to_str()
|
|
|
|
when they expect it to be a String.
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
foo = Object.new
|
|
|
|
class <<foo
|
|
|
|
def to_str
|
|
|
|
"foo"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
p File.open(foo)
|
|
|
|
=> -:7:in `open': wrong argument type Object (expected String) (TypeError)
|
|
|
|
ruby 1.6.4 (2001-04-19) [i586-linux]
|
|
|
|
=> -:7:in `open': No such file or directory - "foo" (Errno::ENOENT)
|
|
|
|
ruby 1.7.0 (2001-05-02) [i586-linux]
|
2001-11-08 01:43:14 -05:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: pp module
|
2001-08-29 02:28:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Imported. Prity Printing library.
|
2001-08-29 02:28:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: open
|
|
|
|
|
|
|
|
Extended so that when the third argument is permission flags it
|
|
|
|
calls open(2) instead of fopen(3).
|
|
|
|
|
|
|
|
: Array#fetch
|
2001-08-14 04:13:31 -04:00
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Array#insert(n, other, ...)
|
2001-08-13 01:56:30 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. [ruby-talk:14289]
|
2001-08-13 01:56:30 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
This is much the same as (({ary[n,0] = [other,...]})) except
|
|
|
|
returing self.
|
2001-08-13 01:32:59 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
ary = [0,1,2,3]
|
|
|
|
ary[2, 0] = [4, 5, 6]
|
|
|
|
p ary
|
2001-08-13 01:32:59 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
ary = [0,1,2,3]
|
|
|
|
ary.insert(2, 4, 5, 6)
|
|
|
|
p ary
|
2001-08-05 23:05:23 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Array#sort!
|
2001-08-05 23:05:23 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Changed to always return self without checking whether the sequence
|
|
|
|
of the elements was modified or not.
|
2001-08-05 23:05:23 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Beware that this behavior is not guaranteed to continue in the
|
|
|
|
future. Do not rely on its return value. [ruby-dev:12506]
|
2001-08-05 23:05:23 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Curses
|
2001-07-24 06:19:46 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Updated. New methods and constants for using the mouse, character
|
|
|
|
attributes, colors and key codes have been added.
|
2001-07-24 06:19:46 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Dir#path
|
2001-07-24 06:19:46 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Dir.chdir
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Extended to take a block.
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Dir.glob
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Made to support meta-character escaping by a backslash. Wildcards
|
|
|
|
and spaces may now be escaped using a backslash.
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Dir.open
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Changed to return what the block returns when a block is given, just
|
|
|
|
as File.open does. (It always returned (({nil})) in 1.6 and
|
|
|
|
prior)
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Dir.chdir
|
2001-07-19 01:49:51 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Changed to warn only when invoked from multiple threads or no block
|
|
|
|
is given. [ruby-dev:13823]
|
2001-06-19 01:28:10 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Dir.chdir('foo') {
|
|
|
|
Dir.chdir('bar') { # previously warned
|
|
|
|
puts Dir.pwd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
: Enumerable#all?
|
|
|
|
: Enumerable#any?
|
|
|
|
: Enumerable#inject
|
|
|
|
: Enumerable#sort_by
|
|
|
|
|
|
|
|
Added.
|
2001-06-19 01:28:10 -04:00
|
|
|
|
2001-06-13 06:51:39 -04:00
|
|
|
: File#fnmatch, File::Constants::FNM_*
|
|
|
|
|
|
|
|
Added. Refer to the fnmatch(3) manpage for details.
|
|
|
|
|
2002-03-13 05:11:09 -05:00
|
|
|
Localism is FNM_DOTMATCH which has the opposite meaning of the
|
|
|
|
commonly known FNM_PERIOD, which does not exist in Ruby.
|
|
|
|
|
2001-06-13 06:51:39 -04:00
|
|
|
e.g.
|
|
|
|
|
2002-03-13 05:11:09 -05:00
|
|
|
# exclude files matching "*.bak" case-insensitively.
|
|
|
|
files.reject! {|fn| File.fnmatch?("*.bak", fn, File::FNM_CASEFOLD) }
|
2001-06-13 06:51:39 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: File.lchmod
|
|
|
|
: File.lchown
|
2001-06-12 01:34:03 -04:00
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: IO#puts
|
2001-06-09 02:00:52 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
do not treat Array specially.
|
2001-06-05 04:17:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: IO.for_fd
|
2001-06-05 04:17:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-05 04:17:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: IO.read
|
2001-06-05 04:17:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. [ruby-talk:9460]
|
2001-06-05 04:17:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Interrupt
|
2001-06-05 04:17:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Made a subclass of SignalException. (It was a subclass of
|
|
|
|
Exception in 1.6 and prior)
|
2001-06-05 04:17:25 -04:00
|
|
|
|
|
|
|
: Marshal
|
|
|
|
|
|
|
|
Fixed not to dump anonymous classes/modules.
|
|
|
|
|
|
|
|
Fixed with loading modules.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: MatchData#to_ary
|
2001-06-05 04:17:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added for convenience of Regexp#match. [ruby-dev:12766]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Previously we had to do:
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
foo, bar, baz = /(\w+?)\s+(\w+?)\s+(\w+)/.match("foo bar baz").to_a[1..-1]
|
|
|
|
p [foo, bar, baz]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
But now can do:
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
_, foo, bar, baz = /(\w+?)\s+(\w+?)\s+(\w+)/.match("foo bar baz")
|
|
|
|
p [foo, bar, baz]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Math.acos(x)
|
|
|
|
: Math.asin(x)
|
|
|
|
: Math.atan(x)
|
|
|
|
: Math.cosh(x)
|
|
|
|
: Math.hypot(x,y)
|
|
|
|
: Math.sinh(x)
|
|
|
|
: Math.tanh(x)
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Method#==
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Module#include?
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. [ruby-dev:13941]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Module#included
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. This is a hook called after Module#append_feature.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Module#method_removed
|
|
|
|
: Module#method_undefined
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Module.new, Class.new
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Extended to take block.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Multiple assignment behavior
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Fixed so that "*a = nil" results in "a == []".
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 06:24:11 -05:00
|
|
|
: NameError and NoMethodError
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Moved and now NoMethodError < NameError < StandardError.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: NoMethodError
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. [ruby-dev:12763]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: NotImplementError
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Finally obsoleted. Use NotImplementedError.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Object#singleton_method_removed
|
|
|
|
: Object#singleton_method_undefined
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Proc#==
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Proc#yield
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. This is equivalent to Proc#call except it does not check the
|
|
|
|
number of given arguments, which are thus passed to the proc as-is.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Process.times
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Moved from Time.times. (Time.times still remains but emits a
|
|
|
|
warning)
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Process.waitall
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Process::Status
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. (({$?})) is now an instance of this class.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Range#step([step=1])
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Range#to_ary
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. You can now do something like this:
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
a, b, c = 1..3
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Regexp#options
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Regexp.last_match(n)
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Extended to take an optional argument.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Signal
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. This module has module functions Signal.trap and Signal.list.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Socket.pack_sockaddr_in, Socket.unpack_sockaddr_in
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. Utility for direct Socket access.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Socket.pack_sockaddr_un, Socket.unpack_sockaddr_un
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. Utility for direct Socket access.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String#[regexp, nth]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Extended to accepts optional second argument.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
tries match between self and REGEXP, then returns the
|
|
|
|
content of the NTH regexp register.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String#casecmp
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. This is a case insensitive version of String#<=>.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String#chomp
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
if $/ == '\n', chops off last newlines (any of \n, \r, \r\n).
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String#eql?
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Changed to be always case sensitive.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String#insert(n, other)
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
This is much the same as (({str[n, 0] = other})) except returing
|
|
|
|
self.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String#lstrip, rstrip, lstrip!, rstrip!
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. These strip only left or right part of a string.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String#match
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String/Array methods
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
returns an instance of receivers class.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: String.new
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 06:24:11 -05:00
|
|
|
The first argument becomes optional.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Symbol#intern
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Symbol.all_symbols
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. [ruby-dev:12921]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: SystemCallError.===
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added. (See the "Comparison of exception classes in a rescue clause"
|
|
|
|
paragraph above) [ruby-dev:12670]
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: SystemExit#status
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
Added.
|
2001-06-04 01:30:25 -04:00
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: TCPServer#listen, UNIXServer#listen
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Added.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: TCPSocket.new
|
|
|
|
: TCPSocket.open
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Extended to take an address and a port number for the local side in
|
|
|
|
optional 3rd and 4th arguments.
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Time
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Extended to accept a negative time_t. (Only when the platform
|
|
|
|
supports it)
|
|
|
|
|
|
|
|
p Time.at(-1)
|
|
|
|
=> Thu Jan 01 08:59:59 JST 1970
|
|
|
|
|
2002-01-11 05:54:23 -05:00
|
|
|
: Time#to_a
|
|
|
|
: Time#zone
|
2001-06-04 01:30:25 -04:00
|
|
|
|
|
|
|
Made to return "UTC" under gmtime. It used to return a platform
|
|
|
|
dependent value, typically "GMT", in 1.6 and prior.
|
|
|
|
|
|
|
|
To be investigated:
|
|
|
|
|
|
|
|
Sat Feb 24 03:15:49 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|
|
|
|
|
|
|
* io.c (set_stdin): preserve original stdin.
|
|
|
|
|
|
|
|
* io.c (set_outfile): preserve original stdout/stderr.
|
|
|
|
|