fold the mini check file

This commit is contained in:
Torsten Ruger 2017-09-06 12:08:44 +03:00
parent af85cb7c67
commit 0e98179888
2 changed files with 8 additions and 12 deletions

View File

@ -1,9 +0,0 @@
module Mom
# A base class for conditions in MOM
# Just a marker, no real functionality for now
class Check < Instruction
end
end

View File

@ -1,7 +1,12 @@
require_relative "check"
module Mom
# A base class for conditions in MOM
# Just a marker, no real functionality for now
class Check < Instruction
end
# The funny thing about the ruby truth is that is is anything but false or nil
#
# To implement the normal ruby logic, we check for false or nil and jump
@ -11,7 +16,7 @@ module Mom
attr_reader :condition
def initialize(condition)
@condition = condition
@condition = condition
end
end
end