fix to_s (mostly)

This commit is contained in:
2019-09-19 20:48:21 +03:00
parent 1e2c4d6678
commit 113ba8607c
14 changed files with 33 additions and 24 deletions

View File

@ -1,11 +1,10 @@
module Ruby
class MethodStatement < Statement
attr_reader :name, :args , :body , :clazz
attr_reader :name, :args , :body
def initialize( name , args , body , clazz = nil)
def initialize( name , args , body)
@name , @args , @body = name , args , body
raise "no bod" unless @body
@clazz = clazz
end
# At the moment normalizing means creating implicit returns for some cases