push
travis-ci
546 of 1272 relevant lines covered (42.92%)
2.92 hits per line
1 |
module Kernel |
6✔ |
2 |
def ergo(&b) |
6✔ |
3 |
if block_given?
|
× |
4 |
b.arity == 1 ? yield(self) : instance_eval(&b) |
× |
5 |
else
|
|
6 |
self
|
× |
7 |
end
|
|
8 |
end
|
|
9 |
end
|