From 74433968f61bd6098fed0ecd663bccbd0d69bd35 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 30 Nov 2017 09:42:14 +0000 Subject: [PATCH] version/null: add to_i method. Fixes #3504. --- Library/Homebrew/version/null.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/version/null.rb b/Library/Homebrew/version/null.rb index 65e3d56c09..9549ba3284 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