blob: 11ac5785f97d3f1a848db9dee07d91d758acef8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module Kernel
def open(file, *rest, &block)
raise ArgumentError unless file.is_a?(String)
if file[0] == "|"
IO.popen(file[1..-1], *rest, &block)
else
File.open(file, *rest, &block)
end
end
end
|