Method: ROM::ModelBuilder#define_const
- Defined in:
- lib/rom/model_builder.rb
#define_const ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Define a model class constant
65 66 67 |
# File 'lib/rom/model_builder.rb', line 65 def define_const namespace.const_set(const_name, klass) end |