Ruby

40
1328 reads

February 28, 2013

Understanding Binding


Understand How Binding Works in Complex Manner

21
1490 reads

February 28, 2013

Binding2


binding is a private method of Kernel. The getBinding method is able to call binding within the current context and return the current value of str.

28
1635 reads

February 28, 2013

Binding


The eval method may take an optional ‘binding’ argument which, if provided, causes the evaluation to be done within a specific scope or ‘context’.

23
2701 reads

February 28, 2013

printf in Ruby


Ruby provides the printf method to print ‘format strings’ containing specifiers starting with a percent sign, %.

40
1170 reads

February 28, 2013

String Methods


Few Methods predefined in Ruby Library

39
1332 reads

February 28, 2013

Indexing in String


You can treat a string as an array of characters and index into that array to find a character at a specific index using square brackets.

24
1230 reads

February 28, 2013

String Concatenation


Combining Various strings to form one is known as concatenation

39
1180 reads

February 28, 2013

STRING ASSIGNMENT


The Ruby String class provides a number of useful string handling methods. Most of these methods create new string objects.

25
1315 reads

February 28, 2013

String Ranges


Making all possible combination.

32
1272 reads

February 28, 2013

Record Separator


Record Separator