module ChaosUtils
Public Class Methods
assert(expected_result=true, msg=nil, &block)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 33 def assert(expected_result=true, msg=nil, &block) ChaosDetector::Utils::CoreUtil.assert(expected_result, msg, &block) end
aught?(obj)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 37 def aught?(obj) ChaosDetector::Utils::CoreUtil.aught?(obj) end
decorate(text, **args)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 21 def decorate(text, **args) ChaosDetector::Utils::StrUtil.decorate(text, **args) end
decorate_pair(src, dest, **args)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 25 def decorate_pair(src, dest, **args) ChaosDetector::Utils::StrUtil.decorate_pair(src, dest, **args) end
decorate_tuple(tuple, **args)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 29 def decorate_tuple(tuple, **args) ChaosDetector::Utils::StrUtil.decorate_tuple(tuple, **args) end
delerp(val, min:, max:)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 9 def delerp(val, min:, max:) ChaosDetector::Utils::LerpUtil.delerp(val, min: min, max: max) end
lerp(pct, min:, max:)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 13 def lerp(pct, min:, max:) ChaosDetector::Utils::LerpUtil.lerp(val, min: min, max: max) end
log_msg(msg, **args)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 17 def log_msg(msg, **args) ChaosDetector::Utils::LogUtil.log(msg, **args) end
naught?(obj)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 41 def naught?(obj) ChaosDetector::Utils::CoreUtil.naught?(obj) end
rel_path(dir_path, from_path:)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 45 def rel_path(dir_path, from_path:) ChaosDetector::Utils::FSUtil.rel_path(dir_path, from_path: from_path) end
squish(str)
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 49 def squish(str) ChaosDetector::Utils::StrUtil.squish(str) end
with(obj) { |obj| ... }
click to toggle source
# File lib/chaos_detector/chaos_utils.rb, line 53 def with(obj) ChaosDetector::Utils::CoreUtil.with(obj) {yield obj} end