class String

Public Instance Methods

to_path() click to toggle source

Convert a string directly into a Pathname object.

# File lib/pathname2.rb, line 1128
def to_path
  Pathname.new(self)
end