Class: Dots::Packages

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/dots/packages.rb

Overview

Represents the config/packages.yml file.

Instance Method Summary collapse

Constructor Details

#initializePackages

Returns a new instance of Packages.



6
7
8
# File 'lib/ruby/dots/packages.rb', line 6

def initialize
  @config = YAML::load_file from_yaml_file_path
end

Instance Method Details

#for(language) ⇒ Object



10
11
12
# File 'lib/ruby/dots/packages.rb', line 10

def for language
  @config[language]
end