Class: Module
Instance Method Summary collapse
Instance Method Details
#define_class(name, base) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/jactive_support/core_ext/module.rb', line 2 def define_class(name, base) module_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1 class #{name} < ::#{base.name} end RUBY_EVAL const_get(name) end |