Class: Runcom::Config

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/runcom/config.rb

Overview

A developer friendly wrapper of XDG config.

Constant Summary collapse

CONTEXT =
Context.new xdg: XDG::Config

Instance Method Summary collapse

Constructor Details

#initialize(path, context: CONTEXT) ⇒ Config

Returns a new instance of Config.



14
15
16
17
# File 'lib/runcom/config.rb', line 14

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

Instance Method Details

#inspectObject



19
# File 'lib/runcom/config.rb', line 19

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