Remove to_str from Option

We no longer need implicit conversion of options to strings.
This commit is contained in:
Jack Nagel 2014-08-27 14:08:14 -05:00
parent f5d18cceb6
commit f7f8ca45fc
2 changed files with 0 additions and 5 deletions

View File

@ -11,7 +11,6 @@ class Option
def to_s def to_s
flag flag
end end
alias_method :to_str, :to_s
def <=>(other) def <=>(other)
return unless Option === other return unless Option === other

View File

@ -10,10 +10,6 @@ class OptionTests < Homebrew::TestCase
assert_equal "--foo", @option.to_s assert_equal "--foo", @option.to_s
end end
def test_to_str
assert_equal "--foo", @option.to_str
end
def test_equality def test_equality
foo = Option.new("foo") foo = Option.new("foo")
bar = Option.new("bar") bar = Option.new("bar")