Sha256: 879932bbd22e820fe8ffb678249ddecc9a7ab7c98f4345baf03d80ea58600882

Contents?: true

Size: 449 Bytes

Versions: 18

Compression:

Stored size: 449 Bytes

Contents

module Metasploit
  module Model
    # Adds {#real_pathname} to class, which will convert `#real_path` `String` to a `Pathname`.
    module RealPathname
      # `#real_path` as a `Pathname`.
      #
      # @return [Pathname] unless `#real_path` is `nil`.
      # @return [nil] if `#real_path` is `nil`.
      def real_pathname
        if real_path
          Pathname.new(real_path)
        else
          nil
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
metasploit-model-0.27.0.pre.dep.pre.railties lib/metasploit/model/real_pathname.rb
metasploit-model-0.26.1-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.26.1 lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.7 lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.7-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.6 lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.6-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.3 lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.3-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.2 lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.2-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.1 lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.1-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups lib/metasploit/model/real_pathname.rb
metasploit-model-0.24.1-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.24.1 lib/metasploit/model/real_pathname.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 lib/metasploit/model/real_pathname.rb