Class: XDG::Runtime
- Inherits:
-
Object
- Object
- XDG::Runtime
- Extended by:
- Forwardable
- Defined in:
- lib/xdg/runtime.rb
Overview
Provides runtime support.
Constant Summary collapse
- HOME_PAIR =
Pair["XDG_RUNTIME_DIR", nil].freeze
Instance Method Summary collapse
-
#initialize(home: Paths::Any, directories: Paths::Directory, environment: ENV) ⇒ Runtime
constructor
A new instance of Runtime.
- #inspect ⇒ Object
Constructor Details
#initialize(home: Paths::Any, directories: Paths::Directory, environment: ENV) ⇒ Runtime
Returns a new instance of Runtime.
15 16 17 18 19 |
# File 'lib/xdg/runtime.rb', line 15 def initialize home: Paths::Any, directories: Paths::Directory, environment: ENV @combined = Paths::Combined.new home.new(HOME_PAIR, environment), directories.new(Pair.new, environment) freeze end |
Instance Method Details
#inspect ⇒ Object
21 |
# File 'lib/xdg/runtime.rb', line 21 def inspect = "#<#{self.class}:#{object_id} #{self}>" |