start on call implementation, getting separation issues

This commit is contained in:
Torsten Ruger
2014-08-23 23:37:33 +03:00
parent 594784c729
commit ad6be2676c
5 changed files with 31 additions and 12 deletions

View File

@ -31,6 +31,7 @@ module Boot
def run_passes
@passes.each do |pass|
puts "Runnning pass #{pass}"
all = main.blocks
@classes.each_value do |c|
c.method_definitions.each {|f| all += f.blocks }
@ -55,12 +56,6 @@ module Boot
raise "No such pass to add after: #{after}" unless index
@passes.insert(index , pass)
end
def add_pass_after( pass , after)
index = @passes.index(after)
raise "No such pass to add after: #{after}" unless index
@passes.insert(index , pass)
end
# boot the classes, ie create a minimal set of classes with a minimal set of functions
# minimal means only that which can not be coded in ruby
# MethodDefinitions are grabbed from respective modules by sending the method name. This should return the