rubyx-debugger/models/instruction_model.rb

14 lines
246 B
Ruby
Raw Normal View History

2015-07-29 16:13:04 +02:00
# represent an instruction and hold the actual instance (as transient)
class InstructionModel < Volt::Model
field :name
attr_accessor :instruction
def initialize(i)
super()
@instruction = i
self.name = i.class.name
end
end