aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-11-30 09:42:14 +0000
committerMike McQuaid2017-11-30 09:42:14 +0000
commit74433968f61bd6098fed0ecd663bccbd0d69bd35 (patch)
treed6c33529c641c8fb1429bfbc654245b904506e84 /Library/Homebrew
parent23d99b4155fe9a97c6bf7bf052dd8354c935e6fa (diff)
downloadbrew-74433968f61bd6098fed0ecd663bccbd0d69bd35.tar.bz2
version/null: add to_i method.
Fixes #3504.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/version/null.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/version/null.rb b/Library/Homebrew/version/null.rb
index 65e3d56c0..9549ba328 100644
--- a/Library/Homebrew/version/null.rb
+++ b/Library/Homebrew/version/null.rb
@@ -30,6 +30,10 @@ class Version
Float::NAN
end
+ def to_i
+ 0
+ end
+
def to_s
""
end