Sha256: 4389f271da152a12a7964e7064ca6828d0369666de0330fa1427519340a7a0ec
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: true module Runcom # A common context for all XDG custom objects. Context = Struct.new :defaults, :home, :environment, :xdg, keyword_init: true do def initialize *arguments super self[:home] ||= Paths::Home self[:environment] ||= ENV self[:xdg] = xdg.new(home:, environment:) if xdg end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
runcom-8.0.1 | lib/runcom/context.rb |
runcom-8.0.0 | lib/runcom/context.rb |