Skip to content

Commit

Permalink
Add how to hide input
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopylov Vladislav committed Nov 13, 2024
1 parent 496cb0d commit 7355bf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/ruby/047.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# How to hide your console input

```ruby
# https://www.ruby-forum.com/t/hiding-user-input/110804/3
name = STDIN.noecho {|i| i.gets}.chomp
```
1 change: 1 addition & 0 deletions docs/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Welcome to Ruby page. Please open menu and enjoy.
- [Private and protected](ruby/044.md)
- [How to declare unary operator](ruby/045.md)
- [Copy data to clipboard in ruby](ruby/046.md)
- [How to hide your console input](ruby/047.md)

## Links

Expand Down

0 comments on commit 7355bf3

Please sign in to comment.