Sha256: c3640fe849e9de1de8a8df2d4f94b1978ce5a97be36a89c6f360b2c225a8e495

Contents?: true

Size: 502 Bytes

Versions: 11

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

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

    CONTEXT = Context.new xdg: XDG::Data

    delegate %i[initial namespace file_name active passive global local all to_s to_str] => :common

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

    def inspect = "#<#{self.class}:#{object_id} #{common}>"

    private

    attr_reader :common
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
runcom-11.10.0 lib/runcom/data.rb
runcom-11.9.0 lib/runcom/data.rb
runcom-11.8.0 lib/runcom/data.rb
runcom-11.7.0 lib/runcom/data.rb
runcom-11.6.0 lib/runcom/data.rb
runcom-11.5.0 lib/runcom/data.rb
runcom-11.4.1 lib/runcom/data.rb
runcom-11.3.0 lib/runcom/data.rb
runcom-11.2.0 lib/runcom/data.rb
runcom-11.1.0 lib/runcom/data.rb
runcom-11.0.0 lib/runcom/data.rb