Ruby

62
863 reads

March 7, 2013

Open_Close


Open_Close

342
2727 reads

March 7, 2013

Open_Close2


Open_Close2

275
3216 reads

March 7, 2013

File_Ops


File_Ops

266
3409 reads

March 7, 2013

Copy_Files


Copy_Files

32
853 reads

March 6, 2013

Creating Arrays


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

29
780 reads

March 6, 2013

Test of Equality using ?method


Test for equality using the equal? method

25
797 reads

March 6, 2013

Understanding Scope of Symbol


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

35
847 reads

March 6, 2013

Test Value of Incoming Argument


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

32
907 reads

March 6, 2013

Symbol Reference2


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

22
808 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.