Sha256: b5ad4d4db66647d50291d9e1cf44de41b9c49835c23e0cc9f03b3ba69d687f29

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 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, :name

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contrast-agent-4.6.0 lib/contrast/agent/module_data.rb
contrast-agent-4.5.0 lib/contrast/agent/module_data.rb