copied salama in for reload
but have to rethink approach
This commit is contained in:
13
app/main/models/instruction_model.rb
Normal file
13
app/main/models/instruction_model.rb
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
# 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
|
Reference in New Issue
Block a user