Module: DbTransformer::Setting

Defined in:
lib/db_transformer/setting.rb

Class Method Summary collapse

Class Method Details

.load(file_path) ⇒ Hash

Parameters:

  • file_path (String)

Returns:

  • (Hash)


7
8
9
10
11
# File 'lib/db_transformer/setting.rb', line 7

def load(file_path)
  file_body = File.read(file_path)

  YAML.load(ERB.new(file_body).result)
end