pub fn define_nested_class(&mut self, name: &str, superclass: Option<&Class>) -> Class {
        let superclass = Self::superclass_to_value(superclass);

        Class::from(class::define_nested_class(self.value(), name, superclass))
    }
/// Creates a new `Class` nested into current module.
///
/// # Examples
///
/// ```
/// use rutie::{Class, Module, Object, VM};
/// # VM::init();
///
/// Module::new("Outer").define(|klass| {
///     klass.define_nested_class("Inner", None);
/// });
///
/// Module::from_existing("Outer").get_nested_class("Inner");
/// ```
///
/// Ruby:
///
/// ```ruby
/// module Outer
///   class Inner
///   end
/// end
///
/// Outer::Inner
///
/// # or
///
/// Outer.const_get('Inner')
/// ```
Creates a new `Class` nested into current module.
Creates a new ` Class ` nested into current module .
pub fn define_nested_class(&mut self, name: &str, superclass: Option<&Class>) -> Class {
        let superclass = Self::superclass_to_value(superclass);
        Class::from(class::define_nested_class(self.value(), name, superclass))
    }
pub fn define_nested_class ( & mut self , name : & str , superclass : Option < & Class > ) -> Class { let superclass = Self :: superclass_to_value ( superclass ) ; Class :: from ( class :: define_nested_class ( self . value ( ) , name , superclass ) ) }
Creates a new `Class` nested into current module.
Creates a new ` Class ` nested into current module .
&mut self
name
&str
superclass
Option<&Class>
&mut self
name
&str
superclass
Option<&Class>
examples
```
use rutie::{Class, Module, Object, VM}.
` ` ` use rutie :: { Class Module Object VM } .
vm::init();
:new("Outer").define(|klass| {
klass.define_nested_class("Inner", None);
}).

:from_existing("Outer").get_nested_class("Inner");
```



```ruby
module Outer
class Inner
end
end

:Inner
: new ( " Outer " ) . define ( |klass| { klass . define_nested_class ( " Inner " None ) ; } ) . : from_existing ( " Outer " ) . get_nested_class ( " Inner " ) ; ` ` ` ` ` ` ruby module Outer class Inner end end : Inner
or
None