Sha256: a3977bb01113af5294b5ddbecfb5d576797f1e6541e5b501b2f52d7e9fe22706
Contents?: true
Size: 454 Bytes
Versions: 33
Compression:
Stored size: 454 Bytes
Contents
module Debase class Breakpoint @@global_id = 1 attr_accessor :source, :pos, :expr, :enabled attr_reader :id def initialize(file, line, expr=nil) @source = file @pos = line @expr = expr @id = @@global_id @@global_id = @@global_id + 1 end def delete! end def self.remove(breakpoints, id) bp = breakpoints.delete_if {|b| b.id == id} bp.delete! if bp bp end end end
Version data entries
33 entries across 22 versions & 3 rubygems