stat() Instance Public methods Returns a File::Stat object. See File.stat.
sticky?() Instance Public methods See FileTest#sticky?.
sub(*args) Instance Public methods Return a pathname which is substituted by String#sub. path1 = Pathname.new('/usr/bin/perl') path1.sub('perl', 'ruby') #=> #<Pathname:/usr/bin/ruby>
sub_ext(p1) Instance Public methods Return a pathname with repl added as a suffix to the basename. If self has no extension part, repl is appended. Pathname.new('/usr/bin/shutdown').sub_ext('.rb') #=> #<Pathname:/usr/bin/shutdown.rb>
symlink?() Instance Public methods See FileTest#symlink?.
pathname.sysopen([mode, [perm]]) â fixnum Instance Public methods See IO.sysopen.
pathname.taint â obj Instance Public methods Taints this Pathname. See Object#taint.
pathname.to_path â string Instance Public methods Return the path as a String. #to_path is implemented so Pathname objects are usable with File.open, etc.
pathname.to_s â string Instance Public methods Return the path as a String. #to_path is implemented so Pathname objects are usable with File.open, etc.
truncate(p1) Instance Public methods Truncates the file to length bytes. See File.truncate.
Page 790 of 11844