Sha256: 6fa8b7b3d76ead60ea5d82b38de8f5393a5e2ef8fa66753b3f16a3fe05164d94

Contents?: true

Size: 872 Bytes

Versions: 26

Compression:

Stored size: 872 Bytes

Contents

module Metasploit
  module Model
    module Derivation
      # Methods for deriving full_name from module_type and reference_name in `Mdm::Module::Ancestor`,
      # `Mdm::Module::Class`, `Metasploit::Framework::Module::Ancestor`, and `Metasploit::Framework::Module::Class`.
      module FullName
        # Derives full_name by combining module_type and reference_name in the same way used to create modules using
        # Msf::ModuleManager#create in metasploit-framework.
        #
        # @return [String] <module_type>/<reference_name>
        # @return [nil] if module_type is `nil`.
        # @return [nil] if reference_name is `nil`.
        def derived_full_name
          derived = nil

          if module_type and reference_name
            derived = "#{module_type}/#{reference_name}"
          end

          derived
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
metasploit-model-0.27.3 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.3-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.2 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.2-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.1 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.1-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.0 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.0-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.27.0.pre.dep.pre.railties lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.26.1-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.26.1 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.7 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.7-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.6 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.6-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.3 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.3-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.2 lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.2-java lib/metasploit/model/derivation/full_name.rb
metasploit-model-0.25.1 lib/metasploit/model/derivation/full_name.rb