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:
2019-09-24 17:25:19 +03:00
parent dd810cfc49
commit 3df54910cc
29 changed files with 87 additions and 35 deletions

View File

@ -5,7 +5,7 @@ module Parfait
def setup
super
@try = @space.create_class( :Try , :Object).singleton_class
@try = @space.create_class( :Try , :Object).single_class
end
def test_type_forclass

View File

@ -28,7 +28,7 @@ module Parfait
assert_equal Parfait::Class , space_class.class
end
def test_get_singleton_class
assert_equal Parfait::SingletonClass , space_class.singleton_class.class
assert_equal Parfait::SingletonClass , space_class.single_class.class
end
def test_get_type_by_class_name
assert_equal Parfait::Type , Parfait.object_space.get_type_by_class_name(:Space).class
@ -74,7 +74,7 @@ module Parfait
end
def test_all_singletons
@space.classes.each do |name , clazz|
assert clazz.singleton_class , clazz.name
assert clazz.single_class , clazz.name
end
end
def test_has_factory