From 4b99a4791e058ecc2d1ca94b55cc7c606afa4db9 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 18 Mar 2004 10:09:43 +0000 Subject: * eval.c (proc_eq): avoid false positive by using scope and dyna_vars. no longer use frame.uniq. * eval.c (proc_arity): arity is now defined as number of parameters that would not be ignored. i.e. Proc.new{}.arity returns zero. update test suites too. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/drb/drb.rb | 2 +- lib/yaml/rubytypes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 2f0f96adc..c056c4116 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -1000,7 +1000,7 @@ module DRb end undef :to_s - undef :to_a if respond_to?(:respond_to) + undef :to_a if respond_to?(:to_a) undef :respond_to? # Routes method calls to the referenced object. diff --git a/lib/yaml/rubytypes.rb b/lib/yaml/rubytypes.rb index ac772bc07..3fc243710 100644 --- a/lib/yaml/rubytypes.rb +++ b/lib/yaml/rubytypes.rb @@ -353,7 +353,7 @@ class Range def to_yaml( opts = {} ) YAML::quick_emit( nil, opts ) { |out| out << "!ruby/range " - self.to_s.to_yaml( :Emitter => out ) + self.to_s.to_yaml(:Emitter => out) } end end -- cgit