lib/xdg/cache.rb in xdg-7.1.3 vs lib/xdg/cache.rb in xdg-8.0.0
- old
+ new
@@ -8,15 +8,17 @@
class Cache
extend Forwardable
HOME_PAIR = Pair["XDG_CACHE_HOME", ".cache"].freeze
- delegate %i[home directories all inspect] => :combined
+ delegate %i[home directories all to_s to_str] => :combined
def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV
@combined = Paths::Combined.new home.new(HOME_PAIR, environment),
directories.new(Pair.new, environment)
end
+
+ def inspect = "#<#{self.class}:#{object_id} #{self}>"
private
attr_reader :combined
end