fold the mini check file
This commit is contained in:
parent
af85cb7c67
commit
0e98179888
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user