Sha256: 9e15c785b5bfb08768b417c0af815c4dcd2871cc3c39c74fb5c877158e546a23
Contents?: true
Size: 368 Bytes
Versions: 4
Compression:
Stored size: 368 Bytes
Contents
module DcmgrResource class Mock def self.load(load) root = File.expand_path('../') load = File::split(load) namespace = load[0] file = load[1] + '.json' dir = File.join(root,'common','data','mock',namespace) jsonfile = File.join(dir,file) json = '' open(jsonfile) {|f| json = f.read } json end end end
Version data entries
4 entries across 4 versions & 1 rubygems