Sha256: 835b090b8c2e018e3e407d4906ade10d288b6d5838fa91d59fd56c2d3daeb87c
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true require "forwardable" module XDG # Provides data support. class Data extend Forwardable HOME_PAIR = Pair["XDG_DATA_HOME", ".local/share"].freeze DIRS_PAIR = Pair["XDG_DATA_DIRS", "/usr/local/share:/usr/share"].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(DIRS_PAIR, 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/data.rb |
xdg-6.6.1 | lib/xdg/data.rb |
xdg-6.6.0 | lib/xdg/data.rb |