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