version/null: add inspect method.

This makes it easier to identify null versions when inspecting them.
This commit is contained in:
Mike McQuaid 2016-11-21 08:48:26 +00:00
parent 1710973792
commit c1688be780

View File

@ -34,5 +34,9 @@ class Version
""
end
alias_method :to_str, :to_s
def inspect
"#<Version::NULL>".freeze
end
end.new
end