add to_s for statements

This commit is contained in:
Torsten Ruger
2018-07-03 22:18:19 +03:00
parent e099014d63
commit 2ad24ab0bb
11 changed files with 51 additions and 0 deletions

View File

@ -18,6 +18,9 @@ module Vool
end
Mom::SlotDefinition.new(:message , [type , @name])
end
def to_s
name.to_s
end
end
class InstanceVariable < Expression
@ -29,6 +32,9 @@ module Vool
def add_ivar( array )
array << @name
end
def to_s
"@#{name}"
end
end
class ClassVariable < Expression