Module: Console1984::Ext::Core::Object
- Extended by:
- ActiveSupport::Concern
- Includes:
- Freezeable
- Defined in:
- lib/console1984/ext/core/object.rb
Overview
Prevents loading forbidden classes dynamically.
There are classes that we don’t want to allow loading dynamically during a console session. For example, we don’t want users to reference the constant Console1984
. We will prevent a direct constant reference but users could still do:
MyConstant = ("Con" + "sole1984").constantize
We prevent this by extending Object#const_get.