Prefer block/closure style in #class_eval

Opal doesn’t support class_eval with String (due to limited control
given by JavaScript `eval()` function) but works well with a block.
Merge pull request #55 from elia/opal-avoid-string-class-eval

Prefer block/closure style in #class_eval