Class: RockConfig::YamlLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/rock_config/yaml_loader.rb

Instance Method Summary collapse

Instance Method Details

#find_at(directory, file_name) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/rock_config/yaml_loader.rb', line 5

def find_at(directory, file_name)
  path = full_path(directory, file_name)

  if readable?(path)
    return Config.new(load_yaml_from(path))
  end
end