sub inline_create_instance {
my $self = shift;
- my ($class) = @_;
- return $self->get_meta_instance->inline_create_instance($class);
+ return $self->get_meta_instance->inline_create_instance(@_);
+}
+
+sub inline_rebless_instance {
+ my $self = shift;
+
+ return $self->get_meta_instance->inline_rebless_instance_structure(@_);
}
sub clone_object {
=item B<< $metaclass->inline_create_instance($class_var) >>
-This method takes a variable name, and uses it create an inline snippet of
-code that will create a new instance of the class.
+=item B<< $metaclass->inline_rebless_instance($instance_var, $class_var) >>
+
+These methods takes variable names, and use them to create an inline snippet
+of code that will create a new instance of the class.
=back
instance_metaclass get_meta_instance
inline_create_instance
+ inline_rebless_instance
create_meta_instance _create_meta_instance
new_object clone_object
construct_instance _construct_instance