fix block initialization

This commit is contained in:
Torsten Ruger
2015-07-26 18:28:39 +03:00
parent e7b8f2fcc8
commit f91c9fabe8
3 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@ module Virtual
def initialize(name , method )
super()
@method = method
raise "Method is not Method, but #{method.class}" unless method == :dummy or method.is_a?(Parfait::Method)
@name = name.to_sym
@branch = nil
@codes = []