2018-03-15 20:51:46 +05:30
|
|
|
require_relative '../helper'
|
2020-02-15 15:26:49 +07:00
|
|
|
|
|
|
|
module SlotMachine
|
|
|
|
class InstructionMock < Instruction
|
|
|
|
def initialize
|
|
|
|
super("mocking")
|
|
|
|
end
|
|
|
|
end
|
2020-02-19 02:19:14 +07:00
|
|
|
module SlotHelper
|
|
|
|
def compile(input)
|
|
|
|
SlotCompiler.compile(input)
|
|
|
|
end
|
|
|
|
def compile_class(input)
|
|
|
|
compile(input).class
|
|
|
|
end
|
|
|
|
end
|
|
|
|
module SlotToHelper
|
|
|
|
def setup
|
|
|
|
Parfait.boot!({})
|
|
|
|
@compiler = SlotMachine::SlotCollection.compiler_for( :Space , :main,{},{})
|
|
|
|
end
|
|
|
|
end
|
2020-02-15 15:26:49 +07:00
|
|
|
end
|