block test

working on return semanitcs
(still avoiding the implicit return)
This commit is contained in:
Torsten Ruger
2018-07-30 14:10:24 +03:00
parent a3059108eb
commit 9c6a099cde
5 changed files with 63 additions and 5 deletions

View File

@ -27,7 +27,7 @@ module Risc
@next = nekst
return unless source
raise "Source must be string or Instruction, not #{source.class}" unless source.is_a?(String) or
source.is_a?(Mom::Instruction) or source.is_a?(Parfait::CallableMethod)
source.is_a?(Mom::Instruction) or source.is_a?(Parfait::Callable)
end
attr_reader :source