Module: Kernel
- Defined in:
- lib/rubytext.rb
Overview
Stick stuff into Kernel for top level
Instance Method Summary collapse
- #getch ⇒ Object
- #p(*args) ⇒ Object
- #print(*args) ⇒ Object
-
#puts(*args) ⇒ Object
private.
- #rcprint(r, c, *args) ⇒ Object
Instance Method Details
#getch ⇒ Object
286 287 288 |
# File 'lib/rubytext.rb', line 286 def getch X.getch end |
#p(*args) ⇒ Object
278 279 280 |
# File 'lib/rubytext.rb', line 278 def p(*args) $stdscr.p(*args) end |
#print(*args) ⇒ Object
274 275 276 |
# File 'lib/rubytext.rb', line 274 def print(*args) $stdscr.print(*args) end |
#puts(*args) ⇒ Object
private
270 271 272 |
# File 'lib/rubytext.rb', line 270 def puts(*args) # Doesn't affect STDOUT.puts, etc. $stdscr.puts(*args) end |
#rcprint(r, c, *args) ⇒ Object
282 283 284 |
# File 'lib/rubytext.rb', line 282 def rcprint(r, c, *args) $stdscr.rcprint r, c, *args end |