little fat of meta class
meta is firmly in the ruby world, not implemented in type world
This commit is contained in:
@ -37,9 +37,6 @@ module Parfait
|
||||
def get_instance_method fname
|
||||
self.object.get_type.get_instance_method fname
|
||||
end
|
||||
def resolve_method m_name
|
||||
self.object.get_type.resolve_method m_name
|
||||
end
|
||||
|
||||
# the modifying part creates a new type
|
||||
# forwards the action and replaces the type
|
||||
@ -57,12 +54,5 @@ module Parfait
|
||||
ret
|
||||
end
|
||||
|
||||
def create_instance_method method_name , arguments
|
||||
raise "create_instance_method #{method_name}.#{method_name.class}" unless method_name.is_a?(Symbol)
|
||||
log.debug "Add_method: #{method_name} clazz: #{self.name}"
|
||||
add_instance_method TypedMethod.new( self , method_name , arguments )
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user