Sha256: 55abab1cb107073c88441dbfe09221583a22da1e6f362c72939e4c2ebfff2c94

Contents?: true

Size: 514 Bytes

Versions: 24

Compression:

Stored size: 514 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

module Contrast
  module Agent
    # A simple wrapper around a Module and a call to its name, used to avoid
    # calling the Module#name method and generating extra Strings
    class ModuleData
      attr_reader :mod, :mod_name

      def initialize mod, mod_name = nil
        @mod = mod
        @mod_name = mod_name || mod.cs__name
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
contrast-agent-5.3.0 lib/contrast/agent/module_data.rb
contrast-agent-5.2.0 lib/contrast/agent/module_data.rb
contrast-agent-5.1.0 lib/contrast/agent/module_data.rb
contrast-agent-5.0.0 lib/contrast/agent/module_data.rb