Sha256: b810258ea5536b31dc3712653cb637aa8acde07bc6b9e1e41790293b8da31b36
Contents?: true
Size: 443 Bytes
Versions: 24
Compression:
Stored size: 443 Bytes
Contents
require 'yaml' class JavascriptTestAutotest::Config def self.get var, default = nil value = configs[var.to_s] value ||= default value ||= yield if block_given? value end private def self.configs unless defined? @@configs file = File.expand_path("#{APP_ROOT}/config/javascript_test_autotest.yml") @@configs = File.exist?(file) ? YAML.load_file(file) : {} end @@configs end end
Version data entries
24 entries across 24 versions & 1 rubygems