Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: (OT -- ruby) Re: Re: Favorite programming language, other than Perl:

by elusion (Curate)
on May 11, 2002 at 02:33 UTC ( #165832=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    class Foo
         def initialize #no initialization needed for this class
         end
    ...
    
    foo = Foo.new
    foo.bar { |n| puts n } # prints "3\n"
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://165832]
help
Chatterbox?
Ratazong just learned about free cookies ;-)
shmem rolls a barrel of beer into the refectorium at the request of jedikaiti
[Lady_Aleena]: Ratazong, you didn't know about Cookies?
[Lady_Aleena]: shmem, jedikaiti would appreciate that. 8)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-04-26 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.