Sha256: 1ed34530a28ca0b77c62315066595f37429e1e7849a93c829149ae94b68ad9a8

Contents?: true

Size: 187 Bytes

Versions: 10

Compression:

Stored size: 187 Bytes

Contents

class Module
  def define_class(name, base)
    module_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
      class #{name} < ::#{base.name}
      end
    RUBY_EVAL
    const_get(name)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jactive_support-2.1.2 lib/jactive_support/core_ext/module.rb
jactive_support-3.0.0 lib/jactive_support/core_ext/module.rb
jactive_support-3.0.0.pre2 lib/jactive_support/core_ext/module.rb
jactive_support-3.0.0.pre1 lib/jactive_support/core_ext/module.rb
jactive_support-2.1.1 lib/jactive_support/core_ext/module.rb
jactive_support-2.1.0 lib/jactive_support/core_ext/module.rb
jactive_support-2.0.0 lib/jactive_support/core_ext/module.rb
jactive_support-1.0.2 lib/jactive_support/core_ext/module.rb
jactive_support-1.0.1-universal-java-1.6 lib/jactive_support/core_ext/module.rb
jactive_support-1.0.0-universal-java-1.6 lib/jactive_support/core_ext/module.rb