aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-08-27 14:08:14 -0500
committerJack Nagel2014-08-27 14:08:14 -0500
commitbd58c1a9ed34dcbc25b6c84f9d5bafdb86466aeb (patch)
treebef519d80696acf184479caf77eadd21e9f0b765 /Library/Homebrew
parent225e0f23962d3f3948b3b23f9c4ac3539c96ee11 (diff)
downloadhomebrew-bd58c1a9ed34dcbc25b6c84f9d5bafdb86466aeb.tar.bz2
Remove to_str from Option
We no longer need implicit conversion of options to strings.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/options.rb1
-rw-r--r--Library/Homebrew/test/test_options.rb4
2 files changed, 0 insertions, 5 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb
index 41f5d555a..6978b553b 100644
--- a/Library/Homebrew/options.rb
+++ b/Library/Homebrew/options.rb
@@ -11,7 +11,6 @@ class Option
def to_s
flag
end
- alias_method :to_str, :to_s
def <=>(other)
return unless Option === other
diff --git a/Library/Homebrew/test/test_options.rb b/Library/Homebrew/test/test_options.rb
index 06d3c246e..25049ded5 100644
--- a/Library/Homebrew/test/test_options.rb
+++ b/Library/Homebrew/test/test_options.rb
@@ -10,10 +10,6 @@ class OptionTests < Homebrew::TestCase
assert_equal "--foo", @option.to_s
end
- def test_to_str
- assert_equal "--foo", @option.to_str
- end
-
def test_equality
foo = Option.new("foo")
bar = Option.new("bar")