more booting

This commit is contained in:
Torsten Ruger
2015-05-24 13:53:49 +03:00
parent e64733d72b
commit 3c0022191b
7 changed files with 24 additions and 27 deletions

View File

@@ -19,15 +19,16 @@ module Parfait
class Method < Object
def initialize name , arg_names
def initialize clazz , name , arg_names
super()
raise "No class #{name}" unless clazz
@for_class = clazz
@name = name
@arg_names = arg_names
@locals = []
@tmps = []
end
attr_reader :name , :arg_names
attr_accessor :for_class
attr_reader :name , :arg_names , :for_class
# determine whether this method has a variable by the given name