metaclass is back
this time with a real purpose and implementation as the intermediary As the interface to the layout and for replacing an edited layout
This commit is contained in:
@@ -80,7 +80,7 @@ module Parfait
|
||||
has = super_index(name)
|
||||
return nil unless has
|
||||
raise "internal error #{name}:#{has}" if has < 1
|
||||
(1 + has / 2).to_i # to_i for opal
|
||||
(1 + has / 2).to_i # to_i for opal
|
||||
end
|
||||
|
||||
def inspect
|
||||
@@ -96,11 +96,5 @@ module Parfait
|
||||
nil # stop resolve recursing up metaclasses
|
||||
end
|
||||
|
||||
def create_instance_method method_name , arguments
|
||||
raise "create_instance_method #{method_name}.#{method_name.class}" unless method_name.is_a?(Symbol)
|
||||
#puts "Self: #{self.class} clazz: #{clazz.name}"
|
||||
add_instance_method Method.new( self , method_name , arguments )
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user