aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/rdoc/options.rb (Options::parse): do not access $KCODE anymatz2007-12-141-2/+0
| | | | | | | | | | longer. [ruby-core:14079] * lib/irb/init.rb (IRB::IRB.parse_opts): ditto. * lib/cgi.rb (CGI::CGI): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * irb/ruby-lex.rb: support for '\c'. [ruby-talk:263508]keiju2007-08-061-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb: typo. Thanks, Giles Bowkett.keiju2007-07-061-17/+22
| | | | | | | | | * lib/irb/completion.rb: support Ruby1.9 changing return value String to Symbol for Object#methods, etc. [ruby-dev:31148]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/locale.rb (IRB::Locale::puts): typo fixed. a patch frommatz2006-12-141-1/+1
| | | | | | | NAKAMURA Usaku <usa@ruby-lang.org>. [ruby-dev:30012] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist?matz2006-12-091-2/+2
| | | | | | | instead of File.exists?. [ruby-dev:30000] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil intomatz2006-09-011-1/+1
| | | | | | | | reading buffer (@readed). reported in <http://jarp.does.notwork.org/diary/200608c.html#200608311>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacifymatz2006-08-081-5/+5
| | | | | | | | RDoc. a patch from Eric Hodel <drbrain at segment7.net>. [ruby-core:08522] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/{init.rb,ruby-lex.rb,slex.rb}: can't input '\c' forkeiju2006-08-043-24/+38
| | | | | | | [ruby-core: 7122]. and support for ruby1.8.X git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (rb_mod_attr): make Module#attr to be an alias tomatz2006-07-201-4/+2
| | | | | | | | | | attr_reader. [RCR#331] * ruby.h: export classes/modules to implement sandbox. [ruby-core:08283] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/completion.rb: support for completion of numerickeiju2006-07-191-4/+20
| | | | | | | number. [ruby-dev: 29038] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* patch was misapplied. fixed. sorryryan2006-07-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cached rdoc diagrams, private rdoc comments, minor clarifications in ↵ryan2006-07-081-2/+3
| | | | | | debug.rb and pp.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/getoptlong.rb (GetoptLong#set_options): recieve argumentsusa2006-06-101-12/+12
| | | | | | | | | | | | | | as Array. * lib/irb/slex.rb: use Proc#yield. * lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior of String#[]. * lib/rdoc/ri/ri_write.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: fixed that irb can't parse /\^/. [ruby-dev:28404] ↵keiju2006-02-281-5/+5
| | | | | | | | | and http://rubyforge.org/tracker/index.php?func=detail&aid=3302&group_id=426&atid=1698 * lib/irb/ruby-lex.rb: support "\s" in irb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_parse_string): mention "regexp" in a errormatz2006-02-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | message. a patch from Mauricio Fernandez <mfp at acm.org> [ruby-core:07340] * eval.c (rb_f_autoload): check if ruby_cbase is nil (during instance_eval for objects cannot have singleton classes, e.g. fixnums and symbols). [ruby-dev:28178] * gc.c (rb_gc_call_finalizer_at_exit): turn on during_gc while invoking finalizers. * gc.c (rb_gc_finalize_deferred): ditto. * io.c (rb_write_error2): use fwrite(3) if rb_stderr is not updated or is already freed. [ruby-dev:28313] * eval.c (error_line): include the class name of a surrounding method in error position description. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: bug fix. [ruby-dev: 26920]keiju2005-08-301-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.keiju2005-08-291-7/+6
| | | | | | | | | | [ruby-dev:26872] * lib/irb/locale.rb: support to print help message when OS locale is ja_JP.utf-8. [ruby-dev:26872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb: make IRB -I option that is same befavior for ruby.keiju2005-08-262-1/+13
| | | | | | | | | | [ruby-dev:26872] * lib/irb/locale.rb: support to print help message when OS locale is ja_JP.utf-8. [ruby-dev:26872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/context.rb: fix `irb --readline` option. [ruby-dev:40955]keiju2005-07-291-4/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::identify_number): alternative implementskeiju2005-06-301-8/+15
| | | | | | | for [ruby-dev:26410]. And support a numeric form of 0d99999. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::identify_number): should not treatmatz2005-06-301-2/+3
| | | | | | | plain zero as an octal number. [ruby-dev:26410] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_readline): do not set rl_{in,out}stream.shugo2005-06-171-0/+2
| | | | | | | | | * ext/readline/readline.c (readline_s_set_input): new method. * ext/readline/readline.c (readline_s_set_output): new method. * lib/irb/input-method.rb: set Readline.input and Readline.output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c (curses_insertln): merged a patch frommatz2005-06-071-0/+3
| | | | | | | | | | TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>. [ruby-ext:02305] * lib/irb/init.rb (IRB::IRB.rc_file_generators): more flexible IRB.rc_file_generators. [ruby-core:05163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: supported libedit. fixed: [ruby-core:4858]shugo2005-05-191-2/+2
| | | | | | | | | | | | * ext/readline/extconf.rb: added new option --enable-libedit. * test/readline/test_readline.rb: added assertions for Readline::HISTORY. * lib/irb/input-method.rb: do not use Readline::HISTORY.pop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb, lib/irb/slex.rb: bug fix of [ruby-Bugs-1745]keiju2005-04-144-6/+19
| | | | | | | | | | * lib/irb/ext/loader.rb, lib/irb/ext/save-history.rb: fix location of @RCS_ID * lib/irb/cmd/help.rb: a lost of release IRB 0.9.5. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rbkeiju2005-04-143-5/+5
| | | | | | | fixed warning of 'ruby -w' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/irb/irb.rd.ja: a lost of release IRB 0.9.5.keiju2005-04-131-1/+1
| | | | | | | * lib/irb/slex.rb: bug fix by [ruby-core :04707]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5(new files)keiju2005-04-133-0/+313
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.keiju2005-04-1330-313/+435
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c: replace rb_protect_inspect() and rb_inspecting_p() bymatz2005-03-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_exec_recursive() in eval.c. * eval.c (rb_exec_recursive): new function. * array.c (rb_ary_join): use rb_exec_recursive(). * array.c (rb_ary_inspect, rb_ary_hash): ditto. * file.c (rb_file_join): ditto. * hash.c (rb_hash_inspect, rb_hash_to_s, rb_hash_hash): ditto. * io.c (rb_io_puts): ditto. * object.c (rb_obj_inspect): ditto * struct.c (rb_struct_inspect): ditto. * lib/set.rb (SortedSet::setup): a hack to shut up warning. [ruby-talk:132866] * lib/time.rb (Time::strptime): add new function. inspired by [ruby-talk:132815]. * lib/parsedate.rb (ParseDate::strptime): ditto. * regparse.c: move st_*_strend() functions from st.c. fixed some potential memory leaks. * exception error messages updated. [ruby-core:04497] * ext/socket/socket.c (Init_socket): add bunch of Socket constants. Patch from Sam Roberts <sroberts@uniserve.com>. [ruby-core:04409] * array.c (rb_ary_s_create): no need for negative argc check. [ruby-core:04463] * array.c (rb_ary_unshift_m): ditto. * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass of StandardError class, not Exception class. [ruby-core:04429] * parse.y (fcall_gen): lvar(arg) will be evaluated as lvar.call(arg) when lvar is a defined local variable. [new] * object.c (rb_class_initialize): call inherited method before calling initializing block. * eval.c (rb_thread_start_1): initialize newly pushed frame. * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE. fixed: [ruby-core:04444] * eval.c (is_defined): NODE_IASGN is an assignment. * ext/readline/readline.c (Readline.readline): use rl_outstream and rl_instream. [ruby-dev:25699] * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check [ruby-dev:25675] * misc/ruby-mode.el: [ruby-core:04415] * lib/rdoc/generators/html_generator.rb: [ruby-core:04412] * lib/rdoc/generators/ri_generator.rb: ditto. * struct.c (make_struct): fixed: [ruby-core:04402] * ext/curses/curses.c (window_color_set): [ruby-core:04393] * ext/socket/socket.c (Init_socket): SO_REUSEPORT added. [ruby-talk:130092] * object.c: [ruby-doc:818] * parse.y (open_args): fix too verbose warnings for the space before argument parentheses. [ruby-dev:25492] * parse.y (parser_yylex): ditto. * parse.y (parser_yylex): the first expression in the parentheses should not be a command. [ruby-dev:25492] * lib/irb/context.rb (IRB::Context::initialize): [ruby-core:04330] * object.c (Init_Object): remove Object#type. [ruby-core:04335] * st.c (st_foreach): report success/failure by return value. [ruby-Bugs-1396] * parse.y: forgot to initialize parser struct. [ruby-dev:25492] * parse.y (parser_yylex): no tLABEL on EXPR_BEG. [ruby-talk:127711] * document updates - [ruby-core:04296], [ruby-core:04301], [ruby-core:04302], [ruby-core:04307] * dir.c (rb_push_glob): should work for NUL delimited patterns. * dir.c (rb_glob2): should aware of offset in the pattern. * string.c (rb_str_new4): should propagate taintedness. * env.h: rename member names in struct FRAME; last_func -> callee, orig_func -> this_func, last_class -> this_class. * struct.c (rb_struct_set): use original method name, not callee name, to retrieve member slot. [ruby-core:04268] * time.c (time_strftime): protect from format modification from GC finalizers. * object.c (Init_Object): remove rb_obj_id_obsolete() * eval.c (rb_mod_define_method): incomplete subclass check. [ruby-dev:25464] * gc.c (rb_data_object_alloc): klass may be NULL. [ruby-list:40498] * bignum.c (rb_big_rand): should return positive random number. [ruby-dev:25401] * bignum.c (rb_big_rand): do not use rb_big_modulo to generate random bignums. [ruby-dev:25396] * variable.c (rb_autoload): [ruby-dev:25373] * eval.c (svalue_to_avalue): [ruby-dev:25366] * string.c (rb_str_justify): [ruby-dev:25367] * io.c (rb_f_select): [ruby-dev:25312] * ext/socket/socket.c (sock_s_getservbyport): [ruby-talk:124072] * struct.c (make_struct): [ruby-dev:25249] * dir.c (dir_open_dir): new function. [ruby-dev:25242] * io.c (rb_f_open): add type check for return value from to_open. * lib/pstore.rb (PStore#transaction): Use the empty content when a file is not found. [ruby-dev:24561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: suppress warnings.nobu2005-01-165-17/+13
| | | | | | | | | | | | | | | | * lib/irb/extend-command.rb (IRB::ContextExtender.def_extend_command): ditto. * lib/irb/ext/history.rb (IRB::Context::set_last_value): ditto. * lib/irb/ext/history.rb (IRB::Context::eval_history): ditto. * lib/irb/locale.rb (IRB::Locale::real_load): ditto. * lib/irb/slex.rb (SLex::Node::create_subnode): remove garbage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_uniq_bang): do not push frozen string from hashmatz2004-11-031-0/+3
| | | | | | | | | | | table. [ruby-dev:24695] * array.c (rb_ary_and): ditto. * array.c (rb_ary_or): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_match_m): add optional second argugment "pos" tomatz2004-07-171-1/+1
| | | | | | | specify match start point. [ruby-core:03203] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c, io.c, pack.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb,nobu2004-04-181-1/+1
| | | | | | | | | | | | | | lib/date.rb, lib/ftools.rb, lib/getoptlong.rb, lib/logger.rb, lib/matrix.rb, lib/monitor.rb, lib/set.rb, lib/thwait.rb, lib/timeout.rb, lib/yaml.rb, lib/drb/drb.rb, lib/irb/workspace.rb, lib/net/ftp.rb, lib/net/http.rb, lib/net/imap.rb, lib/net/pop.rb, lib/net/telnet.rb, lib/racc/parser.rb, lib/rinda/rinda.rb, lib/rinda/tuplespace.rb, lib/shell/command-processor.rb, lib/soap/rpc/soaplet.rb, lib/test/unit/testcase.rb, lib/test/unit/testsuite.rb: typo fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typo.akr2004-03-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_s_def): Struct::new executes block withmatz2004-03-101-1/+1
| | | | | | | | | | generated struct class. [ruby-talk:02606] * io.c (rb_io_ungetc): raise IOError instead of calling rb_sys_fail(). [ruby-talk:23181] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB::IRB.parse_opts): add -I option tomatz2004-02-203-0/+5
| | | | | | | | | | | | | irb. [ruby-dev:39243] * sprintf.c (rb_f_sprintf): sign bit extension should not be done if FPLUS flag is specified. [ruby-list:39224] * sprintf.c (rb_f_sprintf): do not prepend dots for negative numbers if FZERO is specified. [ruby-dev:39218] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/init.rb (IRB.rc_files): yield possible rc file names.nobu2004-02-072-7/+47
| | | | | | | | * lib/irb/input-method.rb (IRB::ReadlineInputMethod::initialize): load and save history automatically. [ruby-core:02352] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/extend-command.rb: add irb_help command. [ruby-talk:91610]nobu2004-02-062-0/+26
| | | | | | | * lib/irb/cmd/help.rb (IRB::ExtendCommand::Help): show RDoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-163-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): dump extended modules as well.matz2003-10-151-1/+1
| | | | | | | | | | | | * marshal.c (r_object0): TYPE_USRMARSHAL should restore extended modules before invoking marshal_load. these two fixes are done by Masatoshi Seki <m_seki@mva.biglobe.ne.jp>. * parse.y (yylex): argument parentheses preceded by spaces should be warned; not error. [ruby-talk:84103] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): instance variable dump do not cause errormatz2003-10-041-2/+1
| | | | | | | | | | | | | | | | | | | | | | for objects that cannot be dumped, if they traversed from marshal_dump. they are just ignored. * gc.c (Init_stack): cast "space" (doble value) into unsigned int. should run on PowerPC. * eval.c (rb_eval): should not execute else part if any exception is caught. [ruby-dev:21482] * parse.y (f_args): should allow unparenthesized block argument. * parse.y (f_rest_arg): should allow unparenthesized rest argument. * lib/irb/ruby-lex.rb (RubyLex::identify_identifier): support 'class ::Foo' syntax. [ruby-talk:83514] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: bug fix for "foo" !~ /bar/. [ruby-talk:79942]keiju2003-08-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb, lib/irb/ruby-token.rb: support %s-notation for irb.keiju2003-08-052-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lec.rb: support %W-notation.keiju2003-08-051-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_mod_const_missing): "const_missing" should notmatz2003-07-261-2/+2
| | | | | | | | | appear in the caller(); add call frame adjustment. * eval.c (rb_method_missing): simplify call frame adjustment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (thgroup_add): no warning for terminated threads.matz2003-07-241-12/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_values_at): extract common procedure frommatz2003-07-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_ary_values_at. follow DRY principle. * re.c (match_values_at): values_at should understand ranges. * struct.c (rb_struct_values_at): ditto. * struct.c (inspect_struct): inspect format changed; add "struct " at the top. * sprintf.c (rb_f_sprintf): "%p" specifier for inspect output. (RCR#68) * eval.c (rb_mod_undef_method): allow "undef_method" to accept multiple arguments. (RCR#146) * lib/timeout.rb: put timeout in Timeout module. (RCR#121) [ruby-talk:61028] * re.c (match_groups): new method added. (RCR#139) * variable.c (rb_mod_const_of): should exclude constant defined in Object, unless retrieving constants of Object. * string.c (rb_str_new4): do not allocate new string if original is frozen or already have copy-on-write entry. [ruby-talk:74940] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_alloc): re-unification of Block and Proc. Blockmatz2003-06-161-2/+2
| | | | | | | class is no longer available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb: typo.matz2003-06-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e