* Install a before function; AOP.
(obj, method, fn)
| 82 | */ |
| 83 | |
| 84 | function before (obj, method, fn) { |
| 85 | var old = obj[method] |
| 86 | |
| 87 | obj[method] = function () { |
| 88 | fn.call(this) |
| 89 | old.apply(this, arguments) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Prompt for confirmation on STDOUT/STDIN |
no outgoing calls
no test coverage detected