Sha256: fa79d5426eaef45fa7235ec2d92287e2bb1a0f42f00a609c776c5f9528885dca
Contents?: true
Size: 694 Bytes
Versions: 11
Compression:
Stored size: 694 Bytes
Contents
# frozen_string_literal: true require "pathname" module XDG module Paths # The combined home and directory paths. class Combined def initialize initial_home, initial_directories @initial_home = initial_home @initial_directories = initial_directories end def home = initial_home.dynamic def directories = initial_directories.dynamic def all = directories.prepend(*home) def to_s = [initial_home.to_s, initial_directories.to_s].reject(&:empty?).join " " alias to_str to_s def inspect = "#<#{self.class}:#{object_id} #{self}>" private attr_reader :initial_home, :initial_directories end end end
Version data entries
11 entries across 11 versions & 1 rubygems