All Articles

Ruby With Practical Approach: Chapter-15: Ruby Lambdas

In this lesson, let's explore ruby lamdas in detail. #Before Discussing lambdas, first w'll see pitfalls in procs proc = Proc.new {|a,b| a*b} #p proc.call(2) # it sends ungiven arguments...

Ruby With Practical Approach: Chapter-14: Ruby Procs

In this lesson, let's explore ruby procs in detail. A proc is an object that contains a code block. It provides a way to save up a code block and execute it later. # Technically, blocks are n...

Ruby With Practical Approach: Chapter-13: Ruby Blocks

In this lesson, let's explore ruby blocks in detail. A block is a piece of code that accepts arguments, and returns a value. A block is always passed to a method call. # Blocks # A Block is ...

Ruby With Practical Approach: Chapter-12: Ruby Modules

In this lesson, let's explore ruby modules in detail. modules are somewhat similar to classes: they are things that hold methods, just like classes do. However, modules can not be instantiated. I...

Ruby With Practical Approach: Chapter-11: Ruby Classes - Inheritence

In this lesson, let's explore ruby classes in detail. Classes are a blueprint for creating individual objects that contain the general characteristics of a defined object type. # Person Class...

Ruby With Practical Approach: Chapter-10: Ruby Classes - Method Types

In this lesson, let's explore ruby classes in detail. Classes are a blueprint for creating individual objects that contain the general characteristics of a defined object type. # Class Method...

Ruby With Practical Approach: Chapter-9: Ruby Classes - self Keyword

In this lesson, let's explore ruby classes in detail. Classes are a blueprint for creating individual objects that contain the general characteristics of a defined object type. class User ...

Ruby With Practical Approach: Chapter-8: Ruby Classes - Basics

In this lesson, let's explore ruby classes. Classes are a blueprint for creating individual objects that contain the general characteristics of a defined object type. #Defining Empty Class cl...

Ruby With Practical Approach: Chapter-7: Ruby Methods

In this lesson, let's explore ruby methods. A method in Ruby is a set of expressions that returns a value. With methods, one can organize their code into subroutines that can be easily invoked fr...

Ruby With Practical Approach: Chapter-6: Ruby Conditionals

In this lesson, let's explore ruby conditionals. # IF - ELSE Condition print "Please enter Your Age: " age = gets.chomp.to_i if (age >= 18) puts "Welcome To Our App." else puts "You'r...

Links
Support Us

If You're Satisfying With Our Services, Wish to Support Us, Please Go Ahead

Support Us