Description
In this course, you will learn :
- provides the fundamentals that both new and experienced developers require to begin coding in Ruby, beginning with the core object types: numbers, strings, symbols, booleans, and more.
- Ruby's control structures, such as conditionals, loops, and iterators, are demonstrated.
- explains best practises for scripting and demonstrates the power of enumerables and code blocks
- You should be able to use Ruby to define your own custom methods with loops and conditional logic by the end of the course.
Syllabus :
1. Get Started with Ruby
- Introducing Ruby
- Install Ruby on a Mac
- Install Ruby on Windows
- Using Ruby
- Interactive Ruby Shell (IRB)
- Documentation
2. Ruby Object Types
- Objects
- Variables
- Numbers: Integers
- Numbers: Floats
- Strings
- Strings: Escaping and interpolation
- Arrays
- Array methods
- Hashes
- Symbols
- Booleans
- Ranges
- Constants
- Nil
3. Control Structures
- About control structures
- Conditionals: if, else, elsif
- Conditionals: unless
- Conditionals: case
- Conditionals: Shorthand operators
- Loops
- Iterators
4. Ruby Scripting
- Best practices
- Exit a running script
- Input and output
5. Enumerables and Code Blocks
- Enumerables
- What is a code block?
- Find methods
- Map methods
- Inject methods
- Sort methods
- Merge methods
6. Custom Methods
- Define and call methods
- Variable scope
- Arguments
- Argument default values
- Return value
- Return multiple values