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
288 289 290 |
# File 'lib/rubytext.rb', line 288 def getch X.getch end |
#p(*args) ⇒ Object
280 281 282 |
# File 'lib/rubytext.rb', line 280 def p(*args) $stdscr.p(*args) end |
#print(*args) ⇒ Object
276 277 278 |
# File 'lib/rubytext.rb', line 276 def print(*args) $stdscr.print(*args) end |
#puts(*args) ⇒ Object
private
272 273 274 |
# File 'lib/rubytext.rb', line 272 def puts(*args) # Doesn't affect STDOUT.puts, etc. $stdscr.puts(*args) end |
#rcprint(r, c, *args) ⇒ Object
284 285 286 |
# File 'lib/rubytext.rb', line 284 def rcprint(r, c, *args) $stdscr.rcprint r, c, *args end |