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
149 150 151 |
# File 'lib/output.rb', line 149 def getch X.getch end |
#p(*args) ⇒ Object
141 142 143 |
# File 'lib/output.rb', line 141 def p(*args) $stdscr.p(*args) end |
#print(*args) ⇒ Object
137 138 139 |
# File 'lib/output.rb', line 137 def print(*args) $stdscr.print(*args) end |
#puts(*args) ⇒ Object
Doesn’t affect STDOUT.puts, etc.
133 134 135 |
# File 'lib/output.rb', line 133 def puts(*args) # Doesn't affect STDOUT.puts, etc. $stdscr.puts(*args) end |
#rcprint(r, c, *args) ⇒ Object
145 146 147 |
# File 'lib/output.rb', line 145 def rcprint(r, c, *args) $stdscr.rcprint r, c, *args end |