module Flake
Utility module to clobber methods.
Constants
- VERSION
Public Class Methods
on(target_class, target_method, error)
click to toggle source
# File lib/flake.rb, line 7 def self.on(target_class, target_method, error) patch = patching_code(target_method, error) target_class.class_eval(patch) end
Private Class Methods
patching_code(target_method, error)
click to toggle source
# File lib/flake.rb, line 15 def patching_code(target_method, error) "extend Flakifier; flakify :#{target_method}, #{error}" end