Sha256: a6c67d126480df14923f006856fc3391d52962e2089a1112fca416122bf3ba98
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
require 'twiauth' require 'yaml' require 'json' def pull_config yml_config = YAML.load_file(File.dirname(__FILE__) + "/config.yml") yml_config.each do |key, value| instance_variable_set("@#{key}", value) end end def parse_json(object) JSON.parser.new(object).parse end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twiauth-0.1.0 | spec/spec_helper.rb |