rubyx-debugger/app/main/models/blocks_model.rb
2015-07-30 10:09:04 +03:00

9 lines
205 B
Ruby

class BlocksModel < Volt::ArrayModel
def instruction_changed old , ins
self.last._class_name = "" if( page._blocks.length > 0)
self << { :name => ins.to_s , :class_name => "active" }
end
end