Sha256: 8a0ce0bfa08883578326e341f73eb8d326f933ecb78852659e622463f9653f12

Contents?: true

Size: 499 Bytes

Versions: 7

Compression:

Stored size: 499 Bytes

Contents

# Copyright (c) 2020 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_accessor :mod, :name
      def initialize mod, name = nil
        @mod = mod
        @name = name || mod.cs__name
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contrast-agent-3.10.2 lib/contrast/agent/module_data.rb
contrast-agent-3.10.1 lib/contrast/agent/module_data.rb
contrast-agent-3.10.0 lib/contrast/agent/module_data.rb
contrast-agent-3.9.1 lib/contrast/agent/module_data.rb
contrast-agent-3.9.0 lib/contrast/agent/module_data.rb
contrast-agent-3.8.5 lib/contrast/agent/module_data.rb
contrast-agent-3.8.4 lib/contrast/agent/module_data.rb