Sha256: 73e77f256991a5df96d290a494bb66258d8790b0207e76826af2f1541f1dbf7c

Contents?: true

Size: 514 Bytes

Versions: 11

Compression:

Stored size: 514 Bytes

Contents

# Copyright (c) 2021 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

11 entries across 11 versions & 1 rubygems

Version Path
contrast-agent-4.14.1 lib/contrast/agent/module_data.rb
contrast-agent-4.14.0 lib/contrast/agent/module_data.rb
contrast-agent-4.13.1 lib/contrast/agent/module_data.rb
contrast-agent-4.13.0 lib/contrast/agent/module_data.rb
contrast-agent-4.12.0 lib/contrast/agent/module_data.rb
contrast-agent-4.11.0 lib/contrast/agent/module_data.rb
contrast-agent-4.10.0 lib/contrast/agent/module_data.rb
contrast-agent-4.9.1 lib/contrast/agent/module_data.rb
contrast-agent-4.9.0 lib/contrast/agent/module_data.rb
contrast-agent-4.8.0 lib/contrast/agent/module_data.rb
contrast-agent-4.7.0 lib/contrast/agent/module_data.rb