Module: Voicemeeter::Configs

Defined in:
lib/voicemeeter/configs.rb

Defined Under Namespace

Classes: FileReader, Loader, TOMLConfBuilder

Class Method Summary collapse

Class Method Details

.get(kind_id) ⇒ Object



108
109
110
111
112
113
# File 'lib/voicemeeter/configs.rb', line 108

def get(kind_id)
  unless defined? @loaders
    @loaders = Kinds::ALL.to_h { |kind| [kind.name, Loader.new(kind).run] }
  end
  @loaders[kind_id].configs
end