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
-
#real_pathname ⇒ Pathname?
#real_pathas aPathname.
Instance Method Details
#real_pathname ⇒ Pathname?
#real_path as a Pathname.
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 |