Skip to content

Commit 109f761

Browse files
committed
IO#stty should be a private helper of io/console
1 parent 02122ad commit 109f761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/truffle/io/console.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ def self.console(sym=nil, *args)
8383
end
8484

8585
if RbConfig::CONFIG['host_os'].downcase =~ /linux/ && File.exist?("/proc/#{Process.pid}/fd")
86-
def stty(*args)
86+
private def stty(*args)
8787
`stty #{args.join(' ')} < /proc/#{Process.pid}/fd/#{fileno}`
8888
end
8989
else
90-
def stty(*args)
90+
private def stty(*args)
9191
`stty #{args.join(' ')}`
9292
end
9393
end

0 commit comments

Comments
 (0)