metaclass moves down to object

This commit is contained in:
Torsten Ruger 2015-11-07 00:12:17 +02:00
parent 204200b92a
commit 46e1a112ab
2 changed files with 5 additions and 4 deletions

View File

@ -33,10 +33,6 @@ module Parfait
#space, and ruby allocate
end
def meta
get_layout
end
def add_instance_name name
self.object_layout.push name
end

View File

@ -71,6 +71,11 @@ module Parfait
return l
end
# return the metaclass
def meta
MetaClass.new self
end
def get_instance_variables
get_layout().instance_names
end