summaryrefslogtreecommitdiffstats
path: root/lib/ostruct.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/ostruct.rb: 1.9 marshaling support back-ported.matz2004-12-031-10/+6
| | | | | | | [ruby-core:03871] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): copy arguments to frame.argv.matz2004-12-031-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ruby-core:03861] * object.c (convert_type): use rb_respond_to() again. [ruby-dev:25021] * eval.c (rb_respond_to): funcall respond_to? if it's redefined. [ruby-dev:25021] * io.c (rb_file_initialize): [ruby-dev:25032] * lib/ostruct.rb (OpenStruct::Marshaler): OpenStruct can be marshaled again. [ruby-core:03862] * io.c (rb_io_ctl): [ruby-dev:25019] * io.c (io_fread): need not to null terminate. [ruby-dev:24998] * io.c (read_all): remove unnecessary rb_str_resize(). [ruby-dev:24996] * io.c (io_read): ditto. * io.c (rb_io_sysread): use temporary lock. [ruby-dev:24992] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_sweep): recover ruby_in_compile variable.matz2004-10-271-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): too many line trace call. (ruby-bugs PR#1320)matz2004-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | * numeric.c (flo_to_s): tweak output string based to preserve decimal point and to remove trailing zeros. [ruby-talk:97891] * string.c (rb_str_index_m): use unsigned comparison for T_FIXNUM search. [ruby-talk:97342] * hash.c (rb_hash_equal): returns true if two hashes have same set of key-value set. [ruby-talk:97559] * hash.c (rb_hash_eql): returns true if two hashes are equal and have same default values. * string.c (rb_str_equal): always returns true or false, never returns nil. [ruby-dev:23404] * io.c (rb_io_reopen): should use rb_io_check_io(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb: documentedgsinclair2004-02-191-11/+54
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb: Added OpenStruct#==.ntalbott2003-09-251-0/+8
| | | | | | | * test/ostruct/test_ostruct.rb: Added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (OpenStruct::method_missing): prohibit modifyingmatz2003-08-261-0/+3
| | | | | | | frozen OpenStruct. [ruby-talk:80214] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: not rewrite installed scripts when dry-run mode.nobu2002-11-181-8/+4
| | | | | | | | * lib/ostruct.rb (OpenStruct::initialize): should symbolize keys instead of values. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ostruct.rb: keep NoMethodError message with Ruby itself.nahi2002-11-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * observer.rb: raise NoMethodError instead of NameError. [ruby-dev:18788]nahi2002-11-141-2/+2
| | | | | | | | * ostruct.rb: ditto. fix a bug in inspect which called String#+ with Symbol. [ruby-dev:18788] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * object.c (Init_Object): added Object#object_id, new name formatz2002-11-031-8/+5
| | | | | | | | | | | | | | | | | | | Object#id. [new] * object.c (rb_obj_id_obsolete): give warning for Object#id. * numeric.c (fix_intern): added Fixnum#to_sym. [new] * object.c (sym_to_sym): rename from Symbol#intern * enum.c (enum_zip): added Enumerable#zip. [new] * array.c (rb_ary_zip): added Array#zip. * error.c (init_syserr): remove sys_nerr dependency. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Object#class instead of deprecated Object#type.nobu2002-10-021-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Initial revisionmatz1998-01-161-0/+55
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8 b2dd03c8-39d4-4d8f-98ff-823fe69b080e