Sha256: eec31c5e1e579acc94ae21fc69002e41621fd76f4d2ff10c81260ffd1776eea4
Contents?: true
Size: 376 Bytes
Versions: 16
Compression:
Stored size: 376 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: home, environment: environment if xdg end end end
Version data entries
16 entries across 16 versions & 1 rubygems