Module: Flake

Defined in:
lib/flake.rb,
lib/flake/version.rb

Overview

Utility module to clobber methods.

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.on(target_class, target_method, error) ⇒ Object



7
8
9
10
# 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