Sha256: 058cb95d1efedd2bd1f29b3d495f71e36c4077f68b5fe61dec689f446ce638a5

Contents?: true

Size: 390 Bytes

Versions: 5

Compression:

Stored size: 390 Bytes

Contents

require 'pathname'

# Adds {#real_pathname} to class, which will convert `#real_path` `String` to a `Pathname`.
module Metasploit::Model::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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metasploit-model-0.28.0 lib/metasploit/model/real_pathname.rb
metasploit-model-0.28.0-java lib/metasploit/model/real_pathname.rb
metasploit-model-0.28.0.pre.engine.pre.requires lib/metasploit/model/real_pathname.rb
metasploit-model-0.27.4 lib/metasploit/model/real_pathname.rb
metasploit-model-0.27.4-java lib/metasploit/model/real_pathname.rb