formula.rb: Initialize path to nil or a Pathname
For consistency, ensure that the `path` member of formula objects is always a `Pathname`.
This commit is contained in:
		
							parent
							
								
									3cd9b6db6a
								
							
						
					
					
						commit
						0d08a5af00
					
				| @ -130,7 +130,7 @@ class Formula | ||||
|     @name=name | ||||
|     validate_variable :name | ||||
| 
 | ||||
|     @path=path | ||||
|     @path = path.nil? ? nil : Pathname.new(path) | ||||
| 
 | ||||
|     set_instance_variable 'version' | ||||
|     @version ||= @spec_to_use.detect_version | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Charlie Sharpsteen
						Charlie Sharpsteen