Sha256: 418ee684f10538cd821d7287697b090a0e0f51af4959b2479bc8060cb43c7a98

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

module SnapshotUI
  class Configuration
    attr_writer :storage_directory, :project_root_directory

    def initialize(project_root_directory:, storage_directory:)
      @project_root_directory = project_root_directory
      @storage_directory = storage_directory
    end

    def storage_directory
      Pathname.new(@storage_directory)
    end

    def project_root_directory
      Pathname.new(@project_root_directory)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snapshot_ui-0.1.0 lib/snapshot_ui/configuration.rb