stdlib/io-console/0/io-console.rbs in rbs-3.3.2 vs stdlib/io-console/0/io-console.rbs in rbs-3.4.0.pre.1
- old
+ new
@@ -104,13 +104,19 @@
#
def cooked!: () -> self
# <!--
# rdoc-file=ext/io/console/console.c
- # - cursor()
+ # - io.cursor -> [row, column]
# -->
+ # Returns the current cursor position as a two-element array of integers (row,
+ # column)
#
+ # io.cursor # => [3, 5]
+ #
+ # You must require 'io/console' to use this method.
+ #
def cursor: () -> [ Integer, Integer ]
# <!--
# rdoc-file=ext/io/console/console.c
# - cursor=(p1)
@@ -202,9 +208,14 @@
#
# The newline character that terminates the read line is removed from the
# returned string, see String#chomp!.
#
# You must require 'io/console' to use this method.
+ #
+ # require 'io/console'
+ # IO::console.getpass("Enter password:")
+ # Enter password:
+ # # => "mypassword"
#
def getpass: (?String) -> String
# <!--
# rdoc-file=ext/io/console/console.c