mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	changing variable name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a6df3a98ab
								
							
						
					
					
						commit
						0b8f727d7b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -375,10 +375,10 @@ module Psych
 | 
			
		|||
  end
 | 
			
		||||
 | 
			
		||||
  ###
 | 
			
		||||
  # Dump Ruby object +o+ to a JSON string.
 | 
			
		||||
  def self.to_json o
 | 
			
		||||
  # Dump Ruby +object+ to a JSON string.
 | 
			
		||||
  def self.to_json object
 | 
			
		||||
    visitor = Psych::Visitors::JSONTree.new
 | 
			
		||||
    visitor << o
 | 
			
		||||
    visitor << object
 | 
			
		||||
    visitor.tree.yaml
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue