block test
working on return semanitcs (still avoiding the implicit return)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user