Module: Metasploit::Model::RealPathname

Defined in:
lib/metasploit/model/real_pathname.rb

Overview

Adds #real_pathname to class, which will convert #real_path String to a Pathname.

Instance Method Summary collapse

Instance Method Details

#real_pathnamePathname?

#real_path as a Pathname.

Returns:

  • (Pathname)

    unless #real_path is nil.

  • (nil)

    if #real_path is nil.



9
10
11
12
13
14
15
# File 'lib/metasploit/model/real_pathname.rb', line 9

def real_pathname
  if real_path
    Pathname.new(real_path)
  else
    nil
  end
end