version/null: add inspect method.
This makes it easier to identify null versions when inspecting them.
This commit is contained in:
parent
1710973792
commit
c1688be780
@ -34,5 +34,9 @@ class Version
|
|||||||
""
|
""
|
||||||
end
|
end
|
||||||
alias_method :to_str, :to_s
|
alias_method :to_str, :to_s
|
||||||
|
|
||||||
|
def inspect
|
||||||
|
"#<Version::NULL>".freeze
|
||||||
|
end
|
||||||
end.new
|
end.new
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user