Writing Classes - Defining Classes
This lesson will teach you how to define your own classes in Ruby!
Built-In Classes: Hashes - Hash Syntax Confusion (optional)
This lesson focuses on giving an introduction on the two types of syntaxes of Hash used in Ruby.
Built-In Classes: Hashes - Exercise 3: Playing with words
Work your way around with Hashes!
Variables - Types of Variables and their Usage
Get to know various kinds of variables in Ruby. Moreover, learn how and when to use them.
Built-in Classes: Strings - Exercise 2: Padding & Justifying
Complete the function to justify a string via padding.
Writing Classes - Initializing Objects
Get to learn ho do we initialize and instantiate objects in Ruby!
Built-in Classes: Strings - Exercise 4: Convert String to Integer
Write a function to convert a string to integer or float.
Built-in Classes: Strings - Exercise 5: Prepend a String
Prepend a string to another string.
Why should you learn Ruby? - Programming is Creation
Motivate yourself to bring your code to life!
Built-In Classes: Arrays - Working with Arrays
Get yourself versed in Arrays and how to operate on them in Ruby!
Built-in Classes: Numbers - Working with Numbers
This lesson goes through the types of number evaluations in Ruby.
Built-In Classes: Arrays - Exercise 2: Return the index of the Element
Exercise to return the index of an array element.
Variables - Quick Quiz on Variables!
Ready for a quick quiz on Ruby variables?
Built-In Classes: Arrays - Exercise 1: Guess the index?
Guess the index of an array element!
Built-in Classes: Strings - Exercise 3: Guess the Output?
Concatenation or addition? Take this quiz to figure it out.
Variables - Things on the Right go First
This lesson describes how Ruby figures out the expression on the right first.
Variables - What are Variables?
This lesson gives an insight into variables and variable assignment.
Variables - Reusing Variable Names
This lesson explains how variable names can be reused in Ruby.
Built-In Classes: Arrays - Exercises 9: Delete an Element
Write code to delete an element from the array.
Objects - Classes
This lesson gives an introduction to classes in Ruby.
Built-In Classes: Booleans - True, False and Nil
A quick intro to True, False and Nil in Ruby.
Built-In Classes: Arrays - Things you can do with Arrays!
This lesson shows how you can work your way around with arrays and do all sorts of calculations with them!
Built-in Classes: Numbers - Exercise 2: Guess the Type?
Guess whether the result is float or integer.
Built-In Classes: Hashes - Working with Hashes
This lesson will discuss the “hash” data structure. Moreover, you’ll learn how to get your hands dirty with them.
Built-in Classes: Strings - Working with Strings
This lesson will teach you how you can operate on strings in Ruby.
Objects - Instances
This lesson explains how objects are formed via their classes.
Built-In Classes: Hashes - Exercise 1: Guess the Answers!
Work your brains up on Hashes!
Built-In Classes: Arrays - Exercise 3: Find the length of the array
Exercise to find the length of the array.
Objects - Objects, Classes and Methods
Prepare yourself to learn more about objects, classes, and methods!
Built-in Classes: Numbers - Exercise 4: Even or Odd?
Check whether a number is even or odd.
Writing Methods - Exercise 1: Greet the person!
In this challenge, you will create a method that takes a name as an input and appends and prepends text with the name to greet the person.
Writing Methods - Definition
This lesson will explain how to define your method in Ruby.
Writing Methods - Return Values
This lesson focuses on how and what a method returns values.
Writing Methods - Scopes
This lesson briefs about the local variables and scope of a variable and their scope.
Writing Methods - Combining Methods
Learn how to use methods within methods!
Writing Methods - Printing Things
Discover some other ways to print something in Ruby!
Writing Methods - Usage
This lesson will brief you on how to use methods in Ruby after defining them.
Writing Methods - Exercise 2: Greet randomly!
Greet in various languages!
Writing Methods - Exercise 3: Convert Miles to Kilometers
In this coding challenge, you will write a method in Ruby that takes miles as input and converts it into kilometers.
Writing Methods - Exercise 4: Check Leap Year
In this exercise, you will write a method that takes a year as input and returns in boolean form if it is a leap year or not.
Writing Classes - Getting Started with Classes!
This lesson is a simple introduction to classes to get you onboard!
Built-In Classes: Arrays - Exercise 7: Reverse the Array
Write code to reverse the array.
Built-In Classes: Arrays - Exercise 6: Combine elements of an array
Make a new array out of existing one by combining certain elements of the array.
Built-In Classes: Arrays - Exercise 4: Replace an element in the array
Exercise and learn how to replace an element in the array.
Built-In Classes: Arrays - Exercise 8: Even Reversed
Write code to reverse only the even elements of the array and building a new array out of them.
Built-In Classes: Hashes - Exercise 2: Flip the keys & values!
Find out how you can flip the keys and values of a dictionary!
Writing Methods - Constituents
Learn about what constitutes method!
Objects - Calling
Learn how to call an object’s methods in Ruby!
Objects - Predicates
This lesson briefs the predicate methods in Ruby and how to use them.
Objects - Bangs
This lesson gives an introduction to bang methods in Ruby.
Objects - Methods
Defining methods of an object is crucial since they exhibit an object’s properties and behaviour.
Objects - Object Oriented Programming
An insight into Object Oriented Programming.
Objects - Listing Methods
This lesson teaches how to list down an object’s methods and how to “chain” method calls with a single line of code!
Objects - Quick Quiz on Objects!
Let’s test your knowledge about Objects!
Conditionals - Shorthand Syntax
This lesson explains the shorthand syntax to write conditionals.
Conditionals - What are Conditionals?
This lesson gives an insight into conditionals in Ruby and their usage.
Writing Classes - Attribute Writers
This lesson briefs over attribute writers and their connection with instance variables.
Writing Classes - Attribute Readers
This lesson explains the attribute readers and how they are related to instance variables.
Objects - Passing Arguments
Learn how to pass arguments to a method in Ruby!
Writing Methods - Flow of Execution (optional)
Learn how and in what flow Ruby runs your code.
Writing Methods - Methods
An introduction to methods and their importance.
Writing Classes - Interacting Objects
Learn how objects interact with each other in Ruby.
Writing Classes - State and Behaviour
This lesson focuses on state, behavior and encapsulation in Ruby methods.
Writing Classes - Instance Variables
A detailed description of instance variables and how they work in Ruby.
Writing Classes - Quick Quiz on Classes!
Ready for a quiz on Classes?
Get Ready for some more Drill! - Challenge 3: Append one heart next to all array elements
Append a substring to each element of the array using string interpolation.
Blocks - What are Blocks?
This lesson will tell you what blocks are and how do we use them in Ruby.
Blocks - Block Return Values
This lesson discusses how and what a block returns.
Blocks - Inversion of Control
This lesson explains how the principle of inversion of control works in Ruby.
Blocks - Alternative Block Syntaxes
Get to know some alternative syntaxes that we use for blocks in Ruby.
Nested Arrays - Working with Nested Arrays
This lesson will briefly discuss Nested Arrays and it uses!
Nested Arrays - Exercise 2: Print the output using Nested Arrays
By using the nested arrays, print the output of a matrix.
Get Ready for some more Drill! - Challenge 6: Align them!
Now using your previous code, align your output as required.
Blocks - Iterators
This lesson goes through Iterators in Ruby and will show you how they can be chainable.
Get Ready for some more Drill! - Challenge 4: Append hearts equal to the element in array
Let’s add some more logic to your previous code!
Blocks - Block Arguments
This lesson discusses what block arguments are, their usage and their Ruby syntax.
Get Ready for some more Drill! - Challenge 2: Make it Uppercase
Convert the first letter of array elements’ to upper case.
Get Ready for some more Drill! - Challenge 5: Join 'em with a newline character!
Now use your previous code, instead of joining elements with space, join them with a newline character!
Operators - Comparison Operators
Learn about comparison operators and how we work our way around with them in Ruby.
Operators - Operators are Methods
This lesson presents how operators are methods too!
Gear up for some Icing on the Cake! - Top-level Object
This lesson explains the concept of “top-level object”, and how it works in Ruby.
Conditionals - Conditionals Return Values
This lesson discusses the conditional statements which return values and how to use them.
Gear up for some Icing on the Cake! - Writing a new Method
This lesson demonstrates the steps of writing new methods in Ruby.
Gear up for some Icing on the Cake! - Terminology: Arguments vs Parameters
This lesson clarifies the difference between arguments and parameters.
Operators - Arithmetical Operators
An intro to arithematic operators and their usage in Ruby.
Operators - Logical Operators
A brief intro to Logical Operators and how we use them in Ruby.
Gear up for some Icing on the Cake! - Questions and Commands
This lesson explains what questions and commands are, and how methods can execute them.
Gear up for some Icing on the Cake! - Lots of Other Methods
Get to know some other cool methods that you can use in your every day Ruby code!
Gear up for some Icing on the Cake! - Alternative Syntax
Gather some alternative syntax that can be used for strings and arrays!
Gear up for some Icing on the Cake! - Using the Right Words
This lesson demonstrates the importance of using the right names for variables, methods, classes, and whatnot!
Gear up for some Icing on the Cake! - Arguments and Parentheses
This lesson discusses the use of parentheses when passing arguments to the methods.
Ready for a Long Haul? - The Email Class
Start off by writing your own email class!
Conditionals - Nothingness and the Truth
An introduction to Nil, True and False objects.
Advanced Topics - Using Libraries
This lesson discusses how and when to use libraries and their syntax in Ruby.
Coding Challenge: Truthiness - Challenge 1: Prettify the table
Have questions about Challenge 1: Prettify the table? Go for it!
Advanced Topics - Modules
This lesson discusses modules in Ruby and it explains how they relate with classes.
Coding Challenge: Truthiness - Challenge 2: Populate the table
Have questions about Challenge 2: Populate the table? Go for it!
Advanced Topics - Regular Expressions
This lesson summarizes the use of regular expressions in Ruby in detail.
Advanced Topics - Private Methods
This lesson briefs on why and how to make methods private.
Ready for a Long Haul? - The Mailbox Class
Write your own mailbox class!
Advanced Topics - More on Character Classes (Regex)
This lesson discusses the character classes of Regex in detail.
Ready for a Long Haul? - The Mailbox Text Formatter
Format your mailbox using MailBoxTextFormatter class!
Ready for a Long Haul? - Reading from a CSV File
Extend your previous code to read from a CSV file.
Your Collateral Apparatus! - Text Editor
This lesson discusses some good text editors and how to go about with them.
Ready for a Long Haul? - The Mailbox Html Formatter
Now lets move onto building Mailbox Html Text Formatter!
Your Collateral Apparatus! - Programming Workflow
This lesson briefs about the programming workflow in your environment.
Ready for a Long Haul? - Storing our HTML to a File
Now lets code how to store our HTML output to a file!
Your Collateral Apparatus! - Terminal
This lesson discusses the importance of being proficient with terminal and its basic commands.
Your Collateral Apparatus! - Interactive Ruby
Familiarize yourself with working with Interactive Ruby (IRB).
Your Collateral Apparatus! - Ruby Runtime
Get yourself acquainted with using the “Ruby runtime”.
Built-In Classes: Hashes - Exercise 4: Combine the words with its language
Play with Hashes such that you identify the key, value pairs across two dictionaries and put them together.
Built-In Classes: Hashes - Exercise 6: Add delimiters to the table
Learn and write code to add delimiters to the table.
Built-In Classes: Hashes - Exercise 5: Aligning the table columns
Write code to align the table columns.
Nested Arrays - Exercise 1: Sum the rows of a matrix
Write a code such that it calculates the sums of all the enteries in rows in a matrix.
Built-in Classes: Strings - Exercise 6: Remove Characters from String
Practice exercise to remove certain characters from a string.
Built-In Classes: Hashes - Things you can do with Hashes!
This lesson will let you practice some imporant functions to perform with hashes.
Get Ready for some more Drill! - Challenge 1: Delete elements from an array
Complete the code to delete elements from the array.
Built-in Classes: Numbers - Exercise 1: Playing with Numbers
Ready for a time calculation exercise?
Writing Classes - Object Scope and Self
This lesson discusses the scope of an object and the usage of the keyword “self”.
Gear up for some Icing on the Cake! - String Interpolation
This lesson explains string interpolation, their usage in strings and “escape sequences”.
Writing Classes - Defining Instance Methods
This lesson focuses on defining instance methods in Ruby.
Built-In Classes: Arrays - Exercise 5: Extract even elements from array
How would you extract the even elements from the array?
Built-In Classes: Symbols - Symbols
An introduction to symbols, when to use them along with their difference from strings.
Built-in Classes: Strings - Exercise 1: Concatenate Substrings
Code to merge and concatenate two strings!
Built-in Classes: Numbers - Exercise 3: Finding Modulo
In this exercise, you’ll write code to take mod of two numbers.