block creation and insertion with correct types

This commit is contained in:
Torsten Ruger
2018-07-07 22:42:00 +03:00
parent 1913848910
commit 0d900de695
4 changed files with 32 additions and 10 deletions

View File

@ -38,7 +38,10 @@ module Parfait
end
def create_block(args , frame)
bl = Block.new(self_type , args , frame)
add_block( Block.new(self_type , args , frame))
end
def add_block(bl)
block = self.blocks
bl.next = block if(block)
@blocks = bl