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:
Charlie Sharpsteen 2011-11-27 16:44:42 -08:00
parent 3cd9b6db6a
commit 0d08a5af00

View File

@ -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