diff options
| author | Mike McQuaid | 2016-11-21 08:48:26 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-11-21 08:48:26 +0000 |
| commit | c1688be78035b5b0ec7ccf1dbae30c5c93c4ee58 (patch) | |
| tree | 4019bbf8ec7570f8b73ad04334fd69cdc5945f79 /Library/Homebrew | |
| parent | 17109737925c65acfba761aa107567d07a910557 (diff) | |
| download | brew-c1688be78035b5b0ec7ccf1dbae30c5c93c4ee58.tar.bz2 | |
version/null: add inspect method.
This makes it easier to identify null versions when inspecting them.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/version/null.rb | 4 |
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 |
