Sha256: 553e242991fcfe25e0d5c91ae803292146b7fff1bb883c3f0c2bfbb831335a0d
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
module CheckDSL def get(varname) data = @stats[:gets] data[varname] = data[varname] ? (data[varname] + 1) : 1 "get(#{varname})" end def gett(option) get(option) end def set(key, value) key = ":" + key.to_s if key.instance_of? Symbol value = ":" + value.to_s if value.instance_of? Symbol @stats[:sets] << "#{key}=#{value}" Logger.info " set(#{key},#{value})" end def unset(key) Logger.info " unset(#{key})" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teuton-2.9.2 | lib/teuton/check/dsl/getset.rb |
teuton-2.9.1 | lib/teuton/check/dsl/getset.rb |
teuton-2.9.0 | lib/teuton/check/dsl/getset.rb |