Section 1

Preview this deck

how to use gets.chomp with ARGV

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (20)

Section 1

(20 cards)

how to use gets.chomp with ARGV

Front

use $stdin.gets.chomp

Back

disrupt a script

Front

ctrl+C

Back

changes to an integer

Front

.to_i

Back

use inputs from the command line

Front

ARGV

Back

escape quotes

Front

"""

Back

puts

Front

prints what is in parenthesis after

Back

quit ruby from powershell

Front

quit

Back

print

Front

leaves cursor or next action on the same line

Back

start ruby from powershell

Front

irb

Back

write into a file

Front

filename.write("Text to be written in")

Back

gets.chomp

Front

waits for user input and chomps off the [enter] after

Back

prevent a line from executing

Front

#

Back

ways to pass variables to a script

Front

gets.chomp, ARGV

Back

put on a new line

Front


Back

name variables to be used

Front

=

Back

tab in

Front

\t

Back

gets

Front

waits for user input on a new line and includes the [enter]

Back

write as wanted between brackets

Front

%q { }

Back

put on new line below

Front


Back

Run computations within text strings

Front

#{computation}

Back