aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-11-21 08:48:26 +0000
committerMike McQuaid2016-11-21 08:48:26 +0000
commitc1688be78035b5b0ec7ccf1dbae30c5c93c4ee58 (patch)
tree4019bbf8ec7570f8b73ad04334fd69cdc5945f79
parent17109737925c65acfba761aa107567d07a910557 (diff)
downloadbrew-c1688be78035b5b0ec7ccf1dbae30c5c93c4ee58.tar.bz2
version/null: add inspect method.
This makes it easier to identify null versions when inspecting them.
-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 77106bcce..65e3d56c0 100644
--- a/Library/Homebrew/version/null.rb
+++ b/Library/Homebrew/version/null.rb
@@ -34,5 +34,9 @@ class Version
""
end
alias_method :to_str, :to_s
+
+ def inspect
+ "#<Version::NULL>".freeze
+ end
end.new
end