Remove useless self from to_hayes methods
This commit is contained in:
		
							parent
							
								
									be87792382
								
							
						
					
					
						commit
						1446be3c14
					
				| @ -1,9 +1,9 @@ | ||||
| class Object | ||||
|   def to_hayes; "\"#{self.to_s}\""; end | ||||
|   def to_hayes; "\"#{to_s}\""; end | ||||
| end | ||||
| 
 | ||||
| class Fixnum | ||||
|   def to_hayes; self.to_s; end | ||||
|   def to_hayes; to_s; end | ||||
| end | ||||
| 
 | ||||
| class TrueClass | ||||
| @ -15,5 +15,5 @@ class FalseClass | ||||
| end | ||||
| 
 | ||||
| class Array | ||||
|   def to_hayes; self.map(&:to_hayes).join(','); end | ||||
|   def to_hayes; map(&:to_hayes).join(','); end | ||||
| end | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Guillaume DOTT
						Guillaume DOTT