Sha256: d427482a4645a732c483af0c749f546990c9587ffd2651b071ba4193b398c9fd
Contents?: true
Size: 344 Bytes
Versions: 2
Compression:
Stored size: 344 Bytes
Contents
# frozen_string_literal: true require "yaml" module DiscourseApi class ExampleHelper def self.load_yml config_yml = File.expand_path("../../../config.yml", __FILE__) puts config_yml begin config = YAML.load_file config_yml rescue Errno::ENOENT config = {} end config end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse_api-2.0.1 | lib/discourse_api/example_helper.rb |
discourse_api-2.0.0 | lib/discourse_api/example_helper.rb |