Class: XDG::State
Overview
Provides state support.
Constant Summary collapse
- HOME_PAIR =
Pair["XDG_STATE_HOME", ".local/state"].freeze
Instance Method Summary collapse
-
#initialize(home: Paths::Home, directories: Paths::Directory, environment: ENV) ⇒ State
constructor
A new instance of State.
- #inspect ⇒ Object
Constructor Details
#initialize(home: Paths::Home, directories: Paths::Directory, environment: ENV) ⇒ State
Returns a new instance of State.
15 16 17 18 |
# File 'lib/xdg/state.rb', line 15 def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV @combined = Paths::Combined.new home.new(HOME_PAIR, environment), directories.new(Pair.new, environment) end |
Instance Method Details
#inspect ⇒ Object
20 |
# File 'lib/xdg/state.rb', line 20 def inspect = "#<#{self.class}:#{object_id} #{self}>" |