diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-27 06:05:04 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-27 06:05:04 +0000 |
commit | 28651fcd3db70dc779fd2d8d119229d3721de34b (patch) | |
tree | 034956384b778251a1dd4090d2f19a43a0d0025b /ruby.h | |
parent | de3d93735d3babc6200bac593f5ec99ac876b3b4 (diff) | |
download | ruby-28651fcd3db70dc779fd2d8d119229d3721de34b.tar.gz ruby-28651fcd3db70dc779fd2d8d119229d3721de34b.tar.xz ruby-28651fcd3db70dc779fd2d8d119229d3721de34b.zip |
* misc/ruby-mode.el: better support for general delimited
strings. [ruby-dev:22695]
* lib/weakref.rb (WeakRef::initialize): set up @__id before
calling "super".
* lib/delegate.rb (Delegator::initialize): preserve
singleton_method_added method [ruby-dev:22685]
* lib/delegate.rb (Delegator::initialize): use Kernel::raise
instead of mere raise. [ruby-dev:22681]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r-- | ruby.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -638,9 +638,7 @@ rb_class_of(obj) if (obj == Qnil) return rb_cNilClass; if (obj == Qfalse) return rb_cFalseClass; } - else{ - return RBASIC(obj)->klass; - } + return RBASIC(obj)->klass; } static inline int @@ -661,9 +659,7 @@ rb_type(obj) if (obj == Qnil) return T_NIL; if (obj == Qfalse) return T_FALSE; } - else{ - return BUILTIN_TYPE(obj); - } + return BUILTIN_TYPE(obj); } static inline int |