Remove to_str from Option
We no longer need implicit conversion of options to strings.
This commit is contained in:
parent
f5d18cceb6
commit
f7f8ca45fc
@ -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
|
||||||
|
|||||||
@ -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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user