Module: Kernel
- Defined in:
- lib/output.rb
Overview
Stick stuff into Kernel for top level
Instance Method Summary collapse
- #getch ⇒ Object
- #p(*args) ⇒ Object
- #print(*args) ⇒ Object
-
#puts(*args) ⇒ Object
Doesn’t affect STDOUT.puts, etc.
- #rcprint(r, c, *args) ⇒ Object
Instance Method Details
#getch ⇒ Object
151 152 153 |
# File 'lib/output.rb', line 151 def getch X.getch end |
#p(*args) ⇒ Object
143 144 145 |
# File 'lib/output.rb', line 143 def p(*args) $stdscr.p(*args) end |
#print(*args) ⇒ Object
139 140 141 |
# File 'lib/output.rb', line 139 def print(*args) $stdscr.print(*args) end |
#puts(*args) ⇒ Object
Doesn’t affect STDOUT.puts, etc.
135 136 137 |
# File 'lib/output.rb', line 135 def puts(*args) # Doesn't affect STDOUT.puts, etc. $stdscr.puts(*args) end |
#rcprint(r, c, *args) ⇒ Object
147 148 149 |
# File 'lib/output.rb', line 147 def rcprint(r, c, *args) $stdscr.rcprint r, c, *args end |