fixing the ruby creation tests

This commit is contained in:
Torsten Ruger
2018-07-19 16:30:36 +03:00
parent f728725b1a
commit 77be0d3f73
16 changed files with 28 additions and 40 deletions

View File

@ -8,16 +8,10 @@ module Ruby
@clazz = clazz
end
def to_vool
MethodStatement.new( @name , @args , @body.normalize)
end
def has_yield?
each{|statement| return true if statement.is_a?(YieldStatement)}
return false
end
def to_s(depth = 0)
arg_str = @args.collect{|a| a.to_s}.join(', ')
at_depth(depth , "def #{name}(#{arg_str})" , @body.to_s(depth + 1) , "end")