move to clss names as types

so as not to mix ruby class names into parfait code
This commit is contained in:
Torsten Ruger 2015-08-06 18:28:40 +03:00
parent 75c43d1b03
commit 9ebe6eb5b7

View File

@ -4,7 +4,7 @@ module Register
module Integer
module ClassMethods
def plus c
plus_function = Virtual::MethodSource.create_method(:Integer,:plus , [Virtual::Integer] )
plus_function = Virtual::MethodSource.create_method(:Integer,:plus , [:Integer] )
plus_function.source.return_type = Virtual::Integer
plus_function.source.receiver = Virtual::Integer
plus_function.source.add_code Register::OperatorInstruction.new( plus_function, :add , 0 , 0 )