fix module handling at ruby level

Was returning arrays instead of Statements, which messed things up
This commit is contained in:
2019-09-06 21:00:37 +03:00
parent 646797301e
commit 363d1cb36f
5 changed files with 29 additions and 13 deletions

View File

@ -9,12 +9,12 @@ module Ruby
def to_vool
vool_brother.new(@name)
end
def to_s(depth=0)
name.to_s
end
end
class LocalVariable < Variable
def to_s
name.to_s
end
end
class InstanceVariable < Variable
@ -24,7 +24,7 @@ module Ruby
array << @name
end
def to_s(depth = 0)
at_depth(depth , "@#{name}" )
"@#{name}"
end
end