lib/xdg/paths/home.rb in xdg-7.1.3 vs lib/xdg/paths/home.rb in xdg-8.0.0
- old
+ new
@@ -20,10 +20,14 @@
def default = expand String(value)
def dynamic = String(environment[key]).then { |path| path.empty? ? default : expand(path) }
- def inspect = [pair.key, dynamic].compact.join XDG::DELIMITER
+ def to_s = [pair.key, dynamic].compact.join XDG::DELIMITER
+
+ alias to_str to_s
+
+ def inspect = "#<#{self.class}:#{object_id} #{self}>"
private
attr_reader :pair, :environment