Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 7
Roadmap for First Release
Tushar Tuteja edited this page Sep 24, 2016
·
1 revision
#Basic Introduction
Data types
Number
Boolean
Strings
Variables
Arithmetic
Puts and print
Everything in Ruby is an Object
String Object
- String methods
- Length
- Reverse
- Downcase
- Upcase
- String methods
Comments
- Single line
- Multi line
Naming Conventions
- Methods
- Variables
- Classes
Function chaining
String Formatter
- Smart String “”, String formatter
- Get.chomp, prompting the user
Control Flow
- If
- Else
- Elsif
- Unless
- Conditional operators
- && ||
- Not
Loops
- While
- Until
- For loop
- Loop method
- Next method
- Each operator
- .times operator
Collections : Arrays
- Create array
- Access by index
- They are lists
- They are continuos
- A[234567] = 1
Collections : Hashes
- Create a hash
- Ordered hashes
- For each | key,value|
- For each gives keys
- Sorting the hash
Methods
- Define them
- Optional paranthesis
- Passing * args
- Hash at the end
Blocks
Sorting