Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make ttymode and ttymode_yield helpers private #4276

Merged
merged 1 commit into from Nov 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/ruby/stdlib/io/console.rb
Expand Up @@ -75,6 +75,7 @@ def ttymode
end
termios
end
private :ttymode

def ttymode_yield(block, &setup)
begin
Expand All @@ -86,6 +87,7 @@ def ttymode_yield(block, &setup)
end
end
end
private :ttymode_yield

TTY_RAW = Proc.new do |t|
LibC.cfmakeraw(t)
Expand Down Expand Up @@ -269,7 +271,7 @@ def oflush
def ioflush
end
end
elsif !IO.method_defined?:ttymode
elsif !IO.private_method_defined? :ttymode
warn "io/console on JRuby shells out to stty for most operations"

# Non-Windows assumes stty command is available
Expand Down