metaclass moves down to object
This commit is contained in:
parent
204200b92a
commit
46e1a112ab
@ -33,10 +33,6 @@ module Parfait
|
|||||||
#space, and ruby allocate
|
#space, and ruby allocate
|
||||||
end
|
end
|
||||||
|
|
||||||
def meta
|
|
||||||
get_layout
|
|
||||||
end
|
|
||||||
|
|
||||||
def add_instance_name name
|
def add_instance_name name
|
||||||
self.object_layout.push name
|
self.object_layout.push name
|
||||||
end
|
end
|
||||||
|
@ -71,6 +71,11 @@ module Parfait
|
|||||||
return l
|
return l
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# return the metaclass
|
||||||
|
def meta
|
||||||
|
MetaClass.new self
|
||||||
|
end
|
||||||
|
|
||||||
def get_instance_variables
|
def get_instance_variables
|
||||||
get_layout().instance_names
|
get_layout().instance_names
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user