aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorJack Nagel2014-07-05 16:00:52 -0500
committerJack Nagel2014-07-05 16:01:09 -0500
commitcf4080a9e0517efc16a71b686e80c3ebcc38f5a2 (patch)
tree12a31f8da3871094e82141bbec81211ddff8310b /Library/Homebrew/extend/pathname.rb
parent2d8a3ac35a71641c786de9f41389a3e5003b7141 (diff)
downloadbrew-cf4080a9e0517efc16a71b686e80c3ebcc38f5a2.tar.bz2
Remove a RUBY_VERSION check, add a FIXME comment
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-rw-r--r--Library/Homebrew/extend/pathname.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 521540717..d38b6b2cd 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -273,9 +273,8 @@ class Pathname
raise ChecksumMismatchError.new(self, expected, actual) unless expected == actual
end
- if '1.9' <= RUBY_VERSION
- alias_method :to_str, :to_s
- end
+ # FIXME eliminate the places where we rely on this method
+ alias_method :to_str, :to_s unless method_defined?(:to_str)
def cd
Dir.chdir(self){ yield }