Skip to content
Snippets Groups Projects
Commit f7f8ca45 authored by Jack Nagel's avatar Jack Nagel
Browse files

Remove to_str from Option

We no longer need implicit conversion of options to strings.
parent f5d18cce
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@ class Option
def to_s
flag
end
alias_method :to_str, :to_s
def <=>(other)
return unless Option === other
......
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment