Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Complete Ruby Tutorial for Beginners
Rating: 3.9 out of 5(310 ratings)
17,321 students

Complete Ruby Tutorial for Beginners

Learn interpreted scripting language for quick and easy object-oriented programming
Created byTutorial Drive
Last updated 2/2018
English
English [Auto],

What you'll learn

  • Clear Idea on Ruby concepts
  • Able to work with Ruby with out hurdle

Course content

1 section27 lectures1h 38m total length
  • Introduction to course0:50

    Meet your instructor, a California software engineer with big data, Hadoop, and Java experience, guiding you through a complete Ruby tutorial for beginners.

  • More Free Resources to Learn Complete​​ Ruby0:01
  • Env setup4:27

    learn how to install Ruby across Windows and Mac, follow the installation page, use package managers like brew, verify installation by running Ruby, and set the path.

  • irb2:09

    Explore the Ruby interactive shell (irb) to run hello world, perform arithmetic, define functions with def and end, and use basic operators and conditional checks in Ruby.

  • sample ruby code2:38

    Create and run a simple Ruby program by adding a .rb extension, saving a sample file, and executing it to see the output. Learn troubleshooting for common Ruby installation errors.

  • white spaces2:00

    Learn how Ruby treats white spaces and invisible spaces in code, and how double quotes denote a string. Experiment in the Ruby shell to see results without running files.

  • line endings1:18

    Discover how line endings affect Ruby statements, where a semicolon and a newline terminate a line, and how Ruby treats them to determine when a statement is completed.

  • Identifiers and reserved words3:22

    Learn how Ruby identifiers are case sensitive, must use alphanumeric characters, and cannot be reserved words; explore keywords like def, puts, in, end, and how to name functions.

  • commenting4:18

    Master ruby comments by using hash for single-line notes and begin-end blocks for multi-line commentary, learn how to disable code segments, and see how puts prints to the console.

  • begin3:37

    Explore how the begin statement in Ruby executes the enclosed code first, as shown through simple print statements and sample code for beginners.

  • end3:11

    Explore how Ruby executes code for beginners using the begin and put statements, showing that a begin block runs first and prints its output regardless of position.

  • oops2:21

    Explore core object oriented programming concepts in Ruby, including inheritance for code reusability, polymorphism, abstraction through hidden implementations, and encapsulation that binds data and behavior.

  • class creation1:26

    Define a Ruby class using the class keyword followed by a name, then end with the end keyword to create a simple class that displays output.

  • variables7:47

    Learn the four Ruby variable types—local, instance, class, and global—and their scopes, from method locals to object, class, and across the program.

  • object creation3:34

    Learn how to create objects in Ruby by defining a class with the class keyword and instantiating objects as instances, as shown with test1, test2, and test3.

  • method class obj5:23

    Define a function as a method in Ruby and learn how to create it within a class. Instantiate objects, access methods, and see how attendance values are produced and printed.

  • Practical 115:44

    Practice with Ruby by building two classes, defining methods and various variables (local, class, global), creating student objects, and displaying attendance and marks.

  • math arithmatic2:53

    Explore basic math operators in Ruby, including addition, subtraction, multiplication, division, and modulus, with hands-on examples and value demonstrations.

  • comparision5:03

    Learn the basic Ruby comparison operators, including equals, not equals, greater than, less than, and their greater than or equal and less than or equal counterparts, with practical examples.

  • assignment operators4:13

    Learn to use Ruby assignment operators to update variables with =, +=, -=, *=, /=, and %=, and explore practical examples of incrementing and reusing values.

  • logical operators6:26

    Explore Ruby logical operators, including and, or, and not, and how to compare two conditions to determine if they are true or false in Ruby.

  • if else3:32

    Explore Ruby conditional statements, including if, else, case, and unless, and see how conditions control program flow with a sample that prints results to the console.

  • unless2:26

    Explain that the unless statement executes only when the condition is false, opposite of if, with examples showing outcomes when conditions are true or false.

  • case4:13

    Learn how to use Ruby's case statement to handle many conditions, with a vowels and consonants example demonstrating input-driven outputs and the end keyword.

  • loops3:23

    Explore loops in Ruby to execute the same statements multiple times, including while and for loops, and use break, next, and redo within loops.

  • methods1:58

    Define methods in Ruby using def and a method name, and close with end. Pass parameters, create reusable code, and call methods on objects to invoke behavior.

  • Bonus Lecture: Awesome Resources0:28

Requirements

  • Nothing about Ruby ,because we will start for scratch.
  • Basic knowledge of Computers

Description

Ruby scripting or programming language which is new and more valuable in today world of Information technology. This course will teach you the fundamental concepts of Ruby including object oriented programming. 

Ruby course is designed to provide its basic concepts, knowledge and practical examples. Ruby comes with a irb (interactive ruby) that will show the results of any statements you give instantly. Working with Ruby code is really interesting and gives more idea on how scripting language works. Going through many practical is the easy and only way to learn the language, and ruby is a lot of fun to use!

This course will explore the concepts of Ruby like:

  • Introduction to Ruby
  • Variables & Strings
  • Arithmetic and Logical Operators
  • Loops & Iterators
  • Arrays and Hashes
  • Object Oriented Programming concepts

All the material which is used in this course is attached in respective lectures.

You can complete this course in 2hours and please don't ignore any Quiz.

We made this course in such a way that everyone can understand easily, we added the basic concepts in the beginning lectures , then added advanced topics and finally taught how to use the Ruby in real time with an example.

Hope you like it !!

Who this course is for:

  • Anyone can learn it as this course starts from scratch
  • Students who wants to explore themselves in Ruby concepts