module DeepCover::Node::Mixin::HasTracker

Constants

TRACKERS

Public Class Methods

included(base) click to toggle source
# File lib/deep_cover/node/mixin/has_tracker.rb, line 6
def self.included(base)
  base.extend ClassMethods
end
new(*) click to toggle source
Calls superclass method
# File lib/deep_cover/node/mixin/has_tracker.rb, line 11
def initialize(*)
  @tracker_offset = covered_code.allocate_trackers(self.class::TRACKERS.size).begin
  super
end

Public Instance Methods

tracker_sources() click to toggle source
# File lib/deep_cover/node/mixin/has_tracker.rb, line 16
def tracker_sources
  self.class::TRACKERS.map do |name, _|
    [:"#{name}_tracker", send(:"#{name}_tracker_source")]
  end.to_h
end