introduce ruby variable and remove ct_type

cleaner oo
This commit is contained in:
Torsten Ruger
2018-07-20 20:53:35 +03:00
parent 9548440949
commit 6022aa4dab
6 changed files with 22 additions and 47 deletions

View File

@ -23,7 +23,7 @@ module Ruby
end
def normalize_arg(arg , arguments , statements)
if arg.respond_to?(:ct_type) and !arg.is_a?(SendStatement)
if arg.is_a?(Constant) and !arg.is_a?(SendStatement)
arguments << arg.to_vool
return
end