Sha256: 446ba849db2eb161a35203069821f2ed25eaceb6de2faae0c193b69ec6e02daf
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true require 'flake/version' require 'flake/flakifier' # Utility module to clobber methods. module Flake def self.on(target_class, target_method, error) patch = patching_code(target_method, error) target_class.class_eval(patch) end class << self private def patching_code(target_method, error) "extend Flakifier; flakify :#{target_method}, #{error}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flake-testing-0.0.1 | lib/flake.rb |