Sha256: b1a50ce048e8c8590a680ecaec7807c7b5d24d2ff2cae7cc8d772b961d650b29
Contents?: true
Size: 620 Bytes
Versions: 23
Compression:
Stored size: 620 Bytes
Contents
require 'singleton' module Scoutui::Base class TestContext include Singleton attr_accessor :settings def initialize @settings={} end def add(_id, _v) Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " add(#{_id}, #{_v})" @settings[_id]=_v Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " => #{@settings[_id]}" end def set(_id, _v) if @settings.has_key?(_id) @settings[_id]=_v else add(_id, _v) end get(_id) end def get(_id) @settings[_id] end end end
Version data entries
23 entries across 23 versions & 1 rubygems