📄 Table of Contents

Introduction / History

Why Ruby ?

How do I run a Ruby file?

Requiring Scripts or Gems in IRB

Load vs Require

one = 1
my_name = "anil kumar"
male = true
my_integers = [1, 2, 3, 4, 5]
bookshelf = []
bookshelf.push(“The Effective Engineer”)
bookshelf << "Lean Startup"
bookshelf << "Hooked"
bookshelf.<<("Hooked")

Hash: Key-Value Data Structure | Dictionary Collection

Classes & Objects

class Vehicle
end
vehicle = Vehicle.new
tesla_model_s = Vehicle.new(4, 'electric', 5, 250)tesla_model_s
# => <Vehicle:0x0055d516903a08 @number_of_wheels=4, @type_of_tank="electric", @seating_capacity=5, @maximum_velocity=250>

Encapsulation: hiding information

tk = Person.new("Leandro Tk", 24)

Inheritance: behaviors and characteristics

Module

Define a Module

Module as namespace

Composition with the mixin facility

in-built module(s)

Math::PI # > 3.141592653589793
Math.sqrt(9) # 3.0

How can we implement our own module and use it in classes ?

Experience with Front-end Technologies and MERN / MEAN Stack. Working on all Major UI Frameworks like React, Angular.