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/yaml/rubytypes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/yaml') 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