Methods
Public Class methods
Active path separator.
p1 = Pathname.new('/') p2 = p1 / 'usr' / 'share' #=> Pathname:/usr/share
[ show source ]
# File lib/facets/pathname.rb, line 40 def self./(path) new(path) end
Alternate to Pathname#new.
Pathname['/usr/share']
[ show source ]
# File lib/facets/pathname.rb, line 31 def self.[](path) new(path) end
Platform dependent null device.
[ show source ]
# File lib/facets/pathname.rb, line 51 def self.null case RUBY_PLATFORM when /mswin/i 'NUL' when /amiga/i 'NIL:' when /openvms/i 'NL:' else '/dev/null' end end