Use #method_defined? instead of #instance_methods.include?, way faster.
Use #method_defined? instead of #instance_methods.include?, way faster.

For an enum ~4k entries drops load time from 10s to 1.5s.

rafer/enumerated_type