aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
diff options
context:
space:
mode:
authorJack Nagel2014-02-19 16:53:18 -0500
committerJack Nagel2014-02-19 16:53:18 -0500
commit80b656fe943b8ab788544a2080b4bd8df3f70e91 (patch)
treee2a5bf1b17f9350de1f8827fe6828c70cc37b868 /Library/Homebrew/formulary.rb
parent91dcb3bdc321732d51cea0df68e97ce6786fd10e (diff)
downloadhomebrew-80b656fe943b8ab788544a2080b4bd8df3f70e91.tar.bz2
Eliminate some Pathname -> String -> Pathname conversions
Diffstat (limited to 'Library/Homebrew/formulary.rb')
-rw-r--r--Library/Homebrew/formulary.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index b733242e8..d5e4fde22 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -44,7 +44,7 @@ class Formulary
unless have_klass
puts "#{$0}: loading #{path}" if ARGV.debug?
begin
- require path.to_s
+ require path
rescue NoMethodError
# This is a programming error in an existing formula, and should not
# have a "no such formula" message.
@@ -110,7 +110,7 @@ class Formulary
end
def get_formula
- klass.new(name, path.to_s)
+ klass.new(name, path)
end
end
@@ -134,7 +134,7 @@ class Formulary
end
def get_formula
- return klass.new(name, path.to_s)
+ return klass.new(name, path)
end
end
@@ -146,7 +146,7 @@ class Formulary
end
def get_formula
- klass.new(tapped_name, path.to_s)
+ klass.new(tapped_name, path)
end
end