revert part of 93d1d866

it appears that instance methods can't be defined in this manner
without using `class_exec`