This tutorial help beginners easy to learn and approach Ruby step by step. Have solid basic to learn about Ruby on Rails.
- Features, data types of Ruby.
- Object-Oriented Programming in Ruby.
- You’ll be able to code by Ruby programming language.
-
- Introduction
- Installation
- Running Ruby
- Official Documents
-
- What is a variable?
- Examples
-
- What is a constant?
- Example
- Best Pratise
-
- What is a comment?
- Single line comments
- Multiline comments
-
- What is a String in Ruby?
- Interpolation
- Indexing
- Common methods
-
- Integers
- Floats
- Operaters
- Convert numbers
-
- true and false are the two Boolean values, and they represent truth and falsehood, yes and no, on and off.
- nil is a special value to indicate the absence of value.
-
- What is a symbol in Ruby?
- Examples
- Common methods
-
- Create an Array
- Indexing
- Accessing elements
- Iteration
- Common methods
-
- Create a Hash
- Accessing value by key
- Iteration
- Common Uses
-
- if
- else
- elsif
- unless
- case
-
- What is a blocks in Ruby?
- Examples
-
- Defining a method
- Default parameters in method
-
- Defining a Class
- Constructor
- Accessing methods levels
- Accessing instance variables
-
- Mixin
- Module as Namespace
- Modules and Class Composition