-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRubyCharacterList.rtf
More file actions
26 lines (25 loc) · 1.24 KB
/
RubyCharacterList.rtf
File metadata and controls
26 lines (25 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf190
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
\f0\fs24 \cf0 puts Tell it to print or show whatever is in quotations afterwards\
# comments things out/ also used when telling ruby to show a variable\
+-*/ Actual math functions\
< or > Ruby will give a true or false designation in response\
% Modulus-divides but gives remainder as opposed to dividend\
= Helps assign variables \
#\{\} Calls previously assigned variable\
%d Tells to fill in text variable, at the end of line % followed by what will be filled in\
%s Same as above, but fills in integer instead of text\
[] used to make a string\
print about the same as puts but no line break\
\\n creates line breaks\
<< there\'92s more to it, but for now: it shows the beginning of a block. followed by a word in caps. Maintains the format of the text block. \
\\t creates a tab in \
\\ clarifier, tells ruby that whatever follows is only a character to show without a function\
ex: \\\\ cat \\\\ reads as \\ cat \\\
gets \
.chomp() Asks for input. \
\
}