diff options
| author | Jack Nagel | 2014-08-27 14:08:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-27 14:08:14 -0500 |
| commit | bd58c1a9ed34dcbc25b6c84f9d5bafdb86466aeb (patch) | |
| tree | bef519d80696acf184479caf77eadd21e9f0b765 /Library | |
| parent | 225e0f23962d3f3948b3b23f9c4ac3539c96ee11 (diff) | |
| download | homebrew-bd58c1a9ed34dcbc25b6c84f9d5bafdb86466aeb.tar.bz2 | |
Remove to_str from Option
We no longer need implicit conversion of options to strings.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/options.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_options.rb | 4 |
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") |
