Image for post
Image for post

📄 Table of Contents

Introduction / History

Why Ruby ?

How do I run a Ruby file?

Requiring Scripts or Gems in IRB

Image for post
Image for post
Image for post
Image for post

Load vs Require

Image for post
Image for post
Image for post
Image for post
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 ?

Image for post
Image for post

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store