We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
File
Kernel.open
1 parent f21910f commit 13bdd76Copy full SHA for 13bdd76
lib/un.rb
@@ -256,7 +256,7 @@ def wait_writable
256
wait = (wait = options[:w]) ? Float(wait) : 0.2
257
argv.each do |file|
258
begin
259
- open(file, "r+b")
+ File.open(file, "r+b")
260
rescue Errno::ENOENT
261
break
262
rescue Errno::EACCES => e
@@ -422,7 +422,7 @@ def help(argv, output: $stdout)
422
messages = {}
423
store = proc {|msg| messages[cmd] = msg}
424
end
425
- open(__FILE__) do |me|
+ File.open(__FILE__) do |me|
426
while me.gets("##\n")
427
if help = me.gets("\n\n")
428
if all or argv.include?(cmd = help[/^#\s*ruby\s.*-e\s+(\w+)/, 1])
0 commit comments