Method: Path.to_proc

Defined in:
lib/path/identity.rb

.to_procObject

A class constructor.

%w[foo bar].map(&Path) # == [Path('foo'), Path('bar')]


18
19
20
# File 'lib/path/identity.rb', line 18

def to_proc
  lambda { |path| new(path) }
end