Advertisement
nanenj

Documentation Sample

Jul 4th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.15 KB | None | 0 0
  1.     # sets the @size of the screen to the current terminal's size
  2.     def set_screen_size
  3.       @size.height, @size.width = IO::console.winsize
  4.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement