Ruby

62
1003 reads

March 7, 2013

Open_Close


Open_Close

342
2862 reads

March 7, 2013

Open_Close2


Open_Close2

275
3366 reads

March 7, 2013

File_Ops


File_Ops

266
3548 reads

March 7, 2013

Copy_Files


Copy_Files

32
995 reads

March 6, 2013

Creating Arrays


The example demonstrates creation of an array and displays it's elements.

29
914 reads

March 6, 2013

Test of Equality using ?method


Test for equality using the equal? method

25
941 reads

March 6, 2013

Understanding Scope of Symbol


The scope in which a symbol is declared does not affect its uniqueness.

35
982 reads

March 6, 2013

Test Value of Incoming Argument


A method might contain code to test the value of the incoming argument

32
1043 reads

March 6, 2013

Symbol Reference2


The ‘meaning’ of the symbol changes according to its scope.

22
940 reads

March 6, 2013

Symbol Reference


The variables $f1, $f2 and $f3 are assigned the symbol :Fred in three different scopes: module One, module Two and the ‘main’ scope.