Skip to content

thanhluanuit/ruby-tutorial

Repository files navigation

Ruby Programming Tutorial

This tutorial help beginners easy to learn and approach Ruby step by step. Have solid basic to learn about Ruby on Rails.

What Will I Learn?

  • Features, data types of Ruby.
  • Object-Oriented Programming in Ruby.
  • You’ll be able to code by Ruby programming language.

Table of contents

  • Getting Started

    • Introduction
    • Installation
    • Running Ruby
    • Official Documents
  • Variables

    • What is a variable?
    • Examples
  • Constants

    • What is a constant?
    • Example
    • Best Pratise
  • Comments

    • What is a comment?
    • Single line comments
    • Multiline comments
  • Strings

    • What is a String in Ruby?
    • Interpolation
    • Indexing
    • Common methods
  • Numbers

    • Integers
    • Floats
    • Operaters
    • Convert numbers
  • True, False and Nil

    • 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.
  • Symbols

    • What is a symbol in Ruby?
    • Examples
    • Common methods
  • Date & Time

  • Arrays

    • Create an Array
    • Indexing
    • Accessing elements
    • Iteration
    • Common methods
  • Range

  • Hashes

    • Create a Hash
    • Accessing value by key
    • Iteration
    • Common Uses
  • Control Flow

    • if
    • else
    • elsif
    • unless
    • case
  • Blocks

    • What is a blocks in Ruby?
    • Examples
  • Methods

    • Defining a method
    • Default parameters in method
  • Classes

    • Defining a Class
    • Constructor
    • Accessing methods levels
    • Accessing instance variables
  • Module

    • Mixin
    • Module as Namespace
    • Modules and Class Composition

About

🎓 Tutorial about Ruby Programming Language. Help beginners easy to learn Ruby step by step.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published