Sha256: e79c415a1557018a2221b3c700e9edae8e152165e10c7903d19a53f277292ac2
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
module Ratch # The XDG utility module provides access ot the XDG library functions. # This module requires the `xdg` gem. # # This module simply maps the #xdg method to the XDG function module. # # NOTE: This module is non-essential since one can just use # the XDG module directly, however we want to encourage the # use XDG, so it's been provided to encourage that in the context # of a Ratch script. # module XDGUtils def self.included(base) begin require 'xdg' rescue $stderr << "The `xdg` gem is needed to use the XDGUtils module." exit -1 end end def self.extended(base) included(base) end # Simple access to XDG function module. # # xdg.config.home #=> "~/.config" # def xdg XDG end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ratch-1.2.0 | lib/ratch/utils/xdg.rb |