As ruby-head is failing on travis - block ruby-head for now
Refactor define_method to plain class reopen