Class: DiscourseApi::ExampleHelper
- Inherits:
-
Object
- Object
- DiscourseApi::ExampleHelper
- Defined in:
- lib/discourse_api/example_helper.rb
Class Method Summary collapse
Class Method Details
.load_yml ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/discourse_api/example_helper.rb', line 6 def self.load_yml config_yml = File.("../../../config.yml", __FILE__) puts config_yml begin config = YAML.load_file config_yml rescue Errno::ENOENT config = {} end config end |