Sha256: 647c4460c00e74d4020bf8c254c16798733f731734e6d392405ff79bfe3b9728
Contents?: true
Size: 447 Bytes
Versions: 38
Compression:
Stored size: 447 Bytes
Contents
module LoaderHelper def load_loader(name) Appsignal.load(name) end def start_loader(name) Appsignal::Loaders.instances.fetch(name).on_start end def unregister_loader(name) Appsignal::Loaders.unregister(name) end def define_loader(name, &block) Appsignal::Testing.registered_loaders << name Class.new(Appsignal::Loaders::Loader) do register name class_eval(&block) if block_given? end end end
Version data entries
38 entries across 38 versions & 1 rubygems