lib/xdg/pair.rb in xdg-5.3.0 vs lib/xdg/pair.rb in xdg-6.0.0
- old
+ new
@@ -11,12 +11,8 @@
def value? = value.to_s.size.positive?
def empty? = !(key? && value?)
- def inspect
- return "" unless key? || value?
-
- "#{key}#{PAIR_DELIMITER}#{value}"
- end
+ def inspect = key? || value? ? "#{key}#{PAIR_DELIMITER}#{value}" : ""
end
end