class Tataru::Instructions::ValueRomInstruction
sets a hash entry and resolves from rom what was set
Public Instance Methods
rom_object()
click to toggle source
# File lib/tataru/instructions/value_rom_instruction.rb, line 16 def rom_object raise 'Not found' unless rom.key? @param rom[@param] end
run()
click to toggle source
# File lib/tataru/instructions/value_rom_instruction.rb, line 9 def run return memory.error = 'No key set' unless memory.hash[:temp].key? :_key key = memory.hash[:temp].delete :_key memory.hash[:temp][key] = resolve(rom_object) end