Sha256: ec7d0bee67ac0b403e49e9c7cf3f7a851a4d0f1491e7a6da53acd78ac6527c6a

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

require "pathname"

module Runcom
  module Paths
    # The combined home and directories for environment.
    class Combined
      def initialize initial_home, initial_directories
        @initial_home = initial_home
        @initial_directories = initial_directories
      end

      def home
        initial_home.dynamic
      end

      def directories
        initial_directories.dynamic
      end

      def all
        directories.prepend home
      end

      private

      attr_reader :initial_home, :initial_directories
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
runcom-4.2.1 lib/runcom/paths/combined.rb
runcom-4.2.0 lib/runcom/paths/combined.rb
runcom-4.1.0 lib/runcom/paths/combined.rb
runcom-4.0.0 lib/runcom/paths/combined.rb