rubyx-debugger/app/main/models/register_model.rb
2015-07-30 10:27:27 +03:00

11 lines
226 B
Ruby

class RegisterModel < Volt::Model
field :name
field :value
def register_changed reg , old , ins
self.last._class_name = "" if( self.length > 0)
self << { :name => ins.to_s , :class_name => "active" }
end
end