Eliminate some Pathname -> String -> Pathname conversions

This commit is contained in:
Jack Nagel 2014-02-19 16:53:18 -05:00
parent 7591b79d7d
commit 1f39d6c2d1

View File

@ -44,7 +44,7 @@ class Formulary
unless have_klass unless have_klass
puts "#{$0}: loading #{path}" if ARGV.debug? puts "#{$0}: loading #{path}" if ARGV.debug?
begin begin
require path.to_s require path
rescue NoMethodError rescue NoMethodError
# This is a programming error in an existing formula, and should not # This is a programming error in an existing formula, and should not
# have a "no such formula" message. # have a "no such formula" message.
@ -110,7 +110,7 @@ class Formulary
end end
def get_formula def get_formula
klass.new(name, path.to_s) klass.new(name, path)
end end
end end
@ -134,7 +134,7 @@ class Formulary
end end
def get_formula def get_formula
return klass.new(name, path.to_s) return klass.new(name, path)
end end
end end
@ -146,7 +146,7 @@ class Formulary
end end
def get_formula def get_formula
klass.new(tapped_name, path.to_s) klass.new(tapped_name, path)
end end
end end