Sha256: b4f68eb161035618f347a79abea9697b7ce8d4137f0eda9193d62bd6692ad22d

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

= Base Directory Mixin

    require 'xdg/base_dir/mixin'

The base directory mixin is used to easy augment a class for 
access to a named subdirectory of the XDG directories.

    class MyAppConfig
      include XDG::BaseDir::Mixin

      def subdirectory
        'myapp'
      end
    end

    c = MyAppConfig.new

    c.config.home.to_a  #=> [$froot + 'home/joe/.config/myapp']

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xdg-2.2.1 qed/03_base_dir_mixin.rdoc
xdg-2.2.0 qed/03_base_dir_mixin.rdoc
xdg-2.1.0 qed/03_base_dir_mixin.rdoc