If the `base.const_get(class_name)` is always going to evaluate to the same object I would probably move it outside of this instance method, since there's no need to "compute" it each time the method is called.