Class: Runcom::State
- Inherits:
-
Object
- Object
- Runcom::State
- Extended by:
- Forwardable
- Defined in:
- lib/runcom/state.rb
Overview
A developer friendly XDG state wrapper.
Constant Summary collapse
- CONTEXT =
Context.new xdg: XDG::State
Instance Method Summary collapse
-
#initialize(path, context: CONTEXT) ⇒ State
constructor
A new instance of State.
- #inspect ⇒ Object
Constructor Details
#initialize(path, context: CONTEXT) ⇒ State
Returns a new instance of State.
14 15 16 17 |
# File 'lib/runcom/state.rb', line 14 def initialize path, context: CONTEXT @common = Paths::Common.new(path, context:) freeze end |
Instance Method Details
#inspect ⇒ Object
19 |
# File 'lib/runcom/state.rb', line 19 def inspect = "#<#{self.class}:#{object_id} #{common}>" |