Viewing 1 to 3 of 3 items
Ruby Methods Tutorials RSS feed for this section
Ruby is a dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features. It was also influenced by Eiffel and Lisp.

Ruby Tutorial - Objects

Ruby is pure object-oriented language and everything appears to Ruby, as an object. Every value in Ruby is an object, even the most primitive things: strings, numbers and even true and false. Even a class itself is an object that is an instance of the Class class. This chapter will take you through all the major functionalities related to Object Or... Read More
0

Ruby Tutorial - Yield

You have seen how Ruby defines methods where you can put number of statements and then you call that method. Similarly Ruby has a concept of Block.. A block consists of chunks of code. You assign a name to a block. The code in the block is always enclosed within braces ({}). A block is always invoked from a function with the same name a... Read More
0

Ruby Tutorial - Functions

Ruby methods are very similar to functions in any other programming language. Ruby methods are used to bundle one or more repeatable statements into a single unit. Method names should begin with a lowercase letter. If you begin a method name with an uppercase letter, Ruby might think that it is a constant and hence can parse the call incorrectly... Read More
0