Top Level Namespace

Defined Under Namespace

Modules: Minitest, Multipart, Spout Classes: Array, DeployError, DictionaryTest, String

Constant Summary collapse

TEMPLATES_DIRECTORY =
File.expand_path("../../templates", __FILE__)

Instance Method Summary collapse

Instance Method Details

#json_value(file, key) ⇒ Object



5
6
7
# File 'lib/spout/tests/json_helper.rb', line 5

def json_value(file, key)
  begin JSON.parse(File.read(file, encoding: "utf-8"))[key.to_s] rescue nil end
end