enum RemiLib::Config::DirectoryType

Overview

The supported types of user configuration directories.

Defined in:

remilib/config/resolver.cr

Enum Members

Xdg = 0

Follows the XDG Base Directory Specification.

Windows = 1

Uses the %APPDATA% directory.

Custom = 2

A custom directory type.

Instance Method Summary

Instance methods inherited from struct Enum

toRsconf(builder : RemiLib::RSConf::Builder) toRsconf

Constructor methods inherited from struct Enum

new(val : RemiLib::RSConf::RSValue) new

Instance methods inherited from class Object

toRsconf(io : IO, *, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : Nil
toRsconf(*, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : String
toRsconf

Class methods inherited from class Object

fromRsconf(toplevel : RemiLib::RSConf::RSValue)
fromRsconf(data : String | IO | Path)
fromRsconf

Instance Method Detail

def custom? #

Returns true if this enum value equals Custom


[View source]
def windows? #

Returns true if this enum value equals Windows


[View source]
def xdg? #

Returns true if this enum value equals Xdg


[View source]