Module: SequencescapeExcel::Helpers

Included in:
Configuration
Defined in:
app/sequencescape_excel/sequencescape_excel/helpers.rb,
app/sequencescape_excel/sequencescape_excel/helpers/download.rb,
app/sequencescape_excel/sequencescape_excel/helpers/worksheet.rb,
app/sequencescape_excel/sequencescape_excel/helpers/attributes.rb

Overview

Helpers

Defined Under Namespace

Modules: Attributes, Download, Worksheet

Instance Method Summary collapse

Instance Method Details

#load_file(folder, filename) ⇒ Object


7
8
9
# File 'app/sequencescape_excel/sequencescape_excel/helpers.rb', line 7

def load_file(folder, filename)
  YAML.load_file(Rails.root.join(folder, "#{filename}.yml")).with_indifferent_access
end