mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Replace outdated blockless proc call with block argument syntax
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									713279550a
								
							
						
					
					
						commit
						e6f8382a76
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -142,11 +142,11 @@ class Tracer
 | 
			
		|||
    stdout.print "Trace off\n" if Tracer.verbose?
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def add_filter(p = proc) # :nodoc:
 | 
			
		||||
  def add_filter(&p) # :nodoc:
 | 
			
		||||
    @filters.push p
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def set_get_line_procs(file, p = proc) # :nodoc:
 | 
			
		||||
  def set_get_line_procs(file, &p) # :nodoc:
 | 
			
		||||
    @get_line_procs[file] = p
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -248,7 +248,7 @@ class Tracer
 | 
			
		|||
  #     puts "line number executed is #{line}"
 | 
			
		||||
  #   })
 | 
			
		||||
 | 
			
		||||
  def Tracer.set_get_line_procs(file_name, p = proc)
 | 
			
		||||
  def Tracer.set_get_line_procs(file_name, &p)
 | 
			
		||||
    Single.set_get_line_procs(file_name, p)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -261,7 +261,7 @@ class Tracer
 | 
			
		|||
  #     "Kernel" == klass.to_s
 | 
			
		||||
  #   end
 | 
			
		||||
 | 
			
		||||
  def Tracer.add_filter(p = proc)
 | 
			
		||||
  def Tracer.add_filter(&p)
 | 
			
		||||
    Single.add_filter(p)
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue