Module: Kernel

Defined in:
lib/pathname_builtin.rb

Class Method Summary collapse

Class Method Details

.Pathname(path) ⇒ Object

Creates a Pathname object.



1214
1215
1216
1217
# File 'lib/pathname_builtin.rb', line 1214

def Pathname(path) # :doc:
  return path if Pathname === path
  Pathname.new(path)
end