Sha256: 20273e32f3c47c1125f003cde69fc9e2b9d65906d67dd473f400ea13b75f35cc

Contents?: true

Size: 434 Bytes

Versions: 16

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

module Runcom
  # A developer friendly wrapper of XDG data.
  class Data
    extend Forwardable

    DEFAULT_CONTEXT = Context.new xdg: XDG::Data

    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

16 entries across 16 versions & 1 rubygems

Version Path
runcom-9.0.3 lib/runcom/data.rb
runcom-9.0.2 lib/runcom/data.rb
runcom-9.0.1 lib/runcom/data.rb
runcom-9.0.0 lib/runcom/data.rb
runcom-8.7.0 lib/runcom/data.rb
runcom-8.6.0 lib/runcom/data.rb
runcom-8.5.0 lib/runcom/data.rb
runcom-8.4.0 lib/runcom/data.rb
runcom-8.3.3 lib/runcom/data.rb
runcom-8.3.2 lib/runcom/data.rb
runcom-8.3.1 lib/runcom/data.rb
runcom-8.3.0 lib/runcom/data.rb
runcom-8.2.0 lib/runcom/data.rb
runcom-8.1.0 lib/runcom/data.rb
runcom-8.0.1 lib/runcom/data.rb
runcom-8.0.0 lib/runcom/data.rb