/** * Define a new module under the Object namespace. Roughly equivalent to * rb_define_module in MRI. * * @param name The name of the new module * @returns The new module */ @Extension public RubyModule defineModule(String name) { return defineModuleUnder(name, objectClass); }
/** * Define a new module under the Object namespace. Roughly equivalent to * rb_define_module in MRI. * * @param name The name of the new module * @returns The new module */ @Extension public RubyModule defineModule(String name) { return defineModuleUnder(name, objectClass); }
/** * Define a new module under the Object namespace. Roughly equivalent to * rb_define_module in MRI. * * @param name The name of the new module * @returns The new module */ @Extension public RubyModule defineModule(String name) { return defineModuleUnder(name, objectClass); }
@Extension public void defineAnnotatedMethods(Class clazz) { defineAnnotatedMethodsIndividually(clazz); }
@Extension public void defineAnnotatedMethods(Class clazz) { defineAnnotatedMethodsIndividually(clazz); }
/** * Define a new class under the Object namespace. Roughly equivalent to * rb_define_class in MRI. * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @return The new class */ @Extension public RubyClass defineClass(String name, RubyClass superClass, ObjectAllocator allocator) { return defineClassUnder(name, superClass, allocator, objectClass); }
/** * Define a new module under the Object namespace. Roughly equivalent to * rb_define_module in MRI. * * @param name The name of the new module * @returns The new module */ @Extension public RubyModule defineModule(String name) { return defineModuleUnder(name, objectClass); }
@Extension public void defineAnnotatedMethods(Class clazz) { defineAnnotatedMethodsIndividually(clazz); }
@Extension public void defineAnnotatedMethods(Class clazz) { defineAnnotatedMethodsIndividually(clazz); }
/** * Define a new class under the Object namespace. Roughly equivalent to * rb_define_class in MRI. * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @return The new class */ @Extension public RubyClass defineClass(String name, RubyClass superClass, ObjectAllocator allocator) { return defineClassUnder(name, superClass, allocator, objectClass); }
/** * Define a new class under the Object namespace. Roughly equivalent to * rb_define_class in MRI. * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @return The new class */ @Extension public RubyClass defineClass(String name, RubyClass superClass, ObjectAllocator allocator) { return defineClassUnder(name, superClass, allocator, objectClass); }
/** * Define a new class under the Object namespace. Roughly equivalent to * rb_define_class in MRI. * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @return The new class */ @Extension public RubyClass defineClass(String name, RubyClass superClass, ObjectAllocator allocator) { return defineClassUnder(name, superClass, allocator, objectClass); }
/** * Define a new class with the given name under the given module or class * namespace. Roughly equivalent to rb_define_class_under in MRI. * * If the name specified is already bound, its value will be returned if: * * It is a class * * No new superclass is being defined * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @param parent The namespace under which to define the new class * @return The new class */ @Extension public RubyClass defineClassUnder(String name, RubyClass superClass, ObjectAllocator allocator, RubyModule parent) { return defineClassUnder(name, superClass, allocator, parent, null); }
/** * Define a new class with the given name under the given module or class * namespace. Roughly equivalent to rb_define_class_under in MRI. * * If the name specified is already bound, its value will be returned if: * * It is a class * * No new superclass is being defined * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @param parent The namespace under which to define the new class * @return The new class */ @Extension public RubyClass defineClassUnder(String name, RubyClass superClass, ObjectAllocator allocator, RubyModule parent) { return defineClassUnder(name, superClass, allocator, parent, null); }
/** * Define a new class with the given name under the given module or class * namespace. Roughly equivalent to rb_define_class_under in MRI. * * If the name specified is already bound, its value will be returned if: * * It is a class * * No new superclass is being defined * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @param parent The namespace under which to define the new class * @return The new class */ @Extension public RubyClass defineClassUnder(String name, RubyClass superClass, ObjectAllocator allocator, RubyModule parent) { return defineClassUnder(name, superClass, allocator, parent, null); }
/** * Define a new class with the given name under the given module or class * namespace. Roughly equivalent to rb_define_class_under in MRI. * * If the name specified is already bound, its value will be returned if: * * It is a class * * No new superclass is being defined * * @param name The name for the new class * @param superClass The super class for the new class * @param allocator An ObjectAllocator instance that can construct * instances of the new class. * @param parent The namespace under which to define the new class * @return The new class */ @Extension public RubyClass defineClassUnder(String name, RubyClass superClass, ObjectAllocator allocator, RubyModule parent) { return defineClassUnder(name, superClass, allocator, parent, null); }
/** rb_define_const * */ @Extension public void defineConstant(String name, IRubyObject value) { assert value != null; if (!IdUtil.isValidConstantName(name)) { throw getRuntime().newNameError("bad constant name " + name, name); } setConstant(name, value); }
/** rb_define_const * */ @Extension public void defineConstant(String name, IRubyObject value) { assert value != null; if (!IdUtil.isValidConstantName(name)) { throw getRuntime().newNameError("bad constant name " + name, name); } setConstant(name, value); }
/** rb_define_const * */ @Extension public void defineConstant(String name, IRubyObject value) { assert value != null; if (!IdUtil.isValidConstantName(name)) { throw getRuntime().newNameError("bad constant name " + name, name); } setConstant(name, value); }
/** rb_define_const * */ @Extension public void defineConstant(String name, IRubyObject value) { assert value != null; if (!IdUtil.isValidConstantName(name)) { throw getRuntime().newNameError("bad constant name " + name, name); } setConstant(name, value); }