rename singleton_class to single_class and misc
was clashing with real ruby method name also many superclass mismatch fixes some misc
This commit is contained in:
@ -52,7 +52,6 @@ module Parfait
|
||||
|
||||
def get_instance_method( fname )
|
||||
raise "get_instance_method #{fname}.#{fname.class}" unless fname.is_a?(Symbol)
|
||||
#if we had a hash this would be easier. Detect or find would help too
|
||||
@instance_methods.find {|m| m.name == fname }
|
||||
end
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
module Parfait
|
||||
class Class < Behaviour
|
||||
|
||||
attr_reader :name , :super_class_name , :singleton_class
|
||||
attr_reader :name , :super_class_name , :single_class
|
||||
|
||||
def self.type_length
|
||||
6
|
||||
@ -30,7 +30,7 @@ module Parfait
|
||||
super(instance_type)
|
||||
@name = name
|
||||
@super_class_name = superclass
|
||||
@singleton_class = SingletonClass.new( self , self.type || @name)
|
||||
@single_class = SingletonClass.new( self , self.type || @name)
|
||||
end
|
||||
|
||||
def rxf_reference_name
|
||||
|
Reference in New Issue
Block a user