class EmberGen::Support::Config

Constants

CONFIG_DIR
VENDOR_MAP

Attributes

hash[R]

Public Class Methods

new(config) click to toggle source
# File lib/ember-gen/support/config.rb, line 11
def initialize(config)
  case config
  when :vendor_map
    @hash = load_yaml(VENDOR_MAP)
  else
    raise "Config mapping undefined for: #{config}"
  end
end

Public Instance Methods

load_yaml(file) click to toggle source
# File lib/ember-gen/support/config.rb, line 20
def load_yaml(file)
  YAML.load_file(file)
end