Sha256: 92a3b6cb020d77a97608100f9782c68ba319998340d3826b350a4a4138e6562b

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

class String
  def to_entry_on storage = nil
    path = self
    storage ||= Vfs.default_storage

    Vfs::Dir.new(storage, '/')[path]
  end
  alias_method :to_entry, :to_entry_on

  def to_file_on storage = nil
    to_entry_on(storage).file
  end
  alias_method :to_file, :to_file_on

  def to_dir_on storage = nil
    to_entry_on(storage).dir
  end
  alias_method :to_dir, :to_dir_on
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vfs-0.3.13 lib/vfs/integration/string.rb