Sha256: 5b42fca8eb0c1cfede9e2accc498c122da8d4d67297bc204c2f407802aea0ae7

Contents?: true

Size: 437 Bytes

Versions: 6

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

module Runcom
  # A developer friendly wrapper of XDG state.
  class State
    extend Forwardable

    DEFAULT_CONTEXT = Context.new xdg: XDG::State

    delegate %i[relative namespace file_name current all inspect] => :common

    def initialize path, context: DEFAULT_CONTEXT
      @common = Paths::Common.new path, context:
    end

    private

    attr_reader :common
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
runcom-9.0.3 lib/runcom/state.rb
runcom-9.0.2 lib/runcom/state.rb
runcom-9.0.1 lib/runcom/state.rb
runcom-9.0.0 lib/runcom/state.rb
runcom-8.7.0 lib/runcom/state.rb
runcom-8.6.0 lib/runcom/state.rb