Skip to content
Snippets Groups Projects
Commit 84fbcdc9 authored by Uladzislau Shablinski's avatar Uladzislau Shablinski Committed by GitHub
Browse files

Merge pull request #2183 from vladshablinsky/questions_mean_bool

ARGV.include? should return boolean
parents 14ae87d5 be8a0b32
No related branches found
No related tags found
No related merge requests found
...@@ -133,9 +133,8 @@ module HomebrewArgvExtension ...@@ -133,9 +133,8 @@ module HomebrewArgvExtension
end end
end end
# self documenting perhaps?
def include?(arg) def include?(arg)
@n=index arg !(@n = index(arg)).nil?
end end
def next def next
......
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