Sha256: 8cc13cc8755ea8ea642cd6434239430423abff85449d443c9d4e3d2401164b5a
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
# frozen_string_literal: true require "forwardable" module XDG # Provides state support. class State extend Forwardable HOME_PAIR = Pair["XDG_STATE_HOME", ".local/state"].freeze delegate %i[home directories all inspect] => :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 private attr_reader :combined end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xdg-6.6.2 | lib/xdg/state.rb |
xdg-6.6.1 | lib/xdg/state.rb |
xdg-6.6.0 | lib/xdg/state.rb |