rubyx-debugger/app/main/models/register_model.rb

11 lines
226 B
Ruby
Raw Normal View History

2015-07-30 09:09:04 +02:00
class RegisterModel < Volt::Model
field :name
field :value
def register_changed reg , old , ins
2015-07-30 09:27:27 +02:00
self.last._class_name = "" if( self.length > 0)
2015-07-30 09:09:04 +02:00
self << { :name => ins.to_s , :class_name => "active" }
end
end