use helper
This commit is contained in:
parent
838aba470d
commit
fb414cecd6
@ -26,7 +26,7 @@ module Parfait
|
|||||||
super()
|
super()
|
||||||
@name = name
|
@name = name
|
||||||
@super_class_name = superclass
|
@super_class_name = superclass
|
||||||
@instance_type = instance_type
|
set_instance_type( instance_type )
|
||||||
end
|
end
|
||||||
|
|
||||||
def sof_reference_name
|
def sof_reference_name
|
||||||
@ -38,8 +38,9 @@ module Parfait
|
|||||||
end
|
end
|
||||||
|
|
||||||
# setting the type generates all methods for this type
|
# setting the type generates all methods for this type
|
||||||
# (or will do, once we storet the methods code to do that)
|
# (or will do, once we store the methods code to do that)
|
||||||
def set_instance_type( type )
|
def set_instance_type( type )
|
||||||
|
raise "type must be type #{type}" unless type.is_a?(Type)
|
||||||
@instance_type = type
|
@instance_type = type
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user