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

Version Path
debase-0.2.7 lib/debase/rbx/breakpoint.rb
debase-0.2.6 lib/debase/rbx/breakpoint.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/lib/debase/rbx/breakpoint.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/debase-0.2.5.beta1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/debase-0.2.5.beta1/lib/debase/rbx/breakpoint.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb
debase-0.2.5.beta2 lib/debase/rbx/breakpoint.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/breakpoint.rb