Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Ruby procs & lambdas

ruby proc lambda

  • Please log in to reply
5 replies to this topic

#1 lazarus

lazarus

    Signalman

  • Members
  • 16 posts
  • LocationGreece

Posted 18 October 2013 - 08:42 AM

Hi everybody,

 

I found this article about procs & lambdas quite useful.

 

http://techspry.com/...lambda-in-ruby/


  • Rowel likes this

#2 Bharat Soni

Bharat Soni

    Dispatcher

  • Members
  • 54 posts
  • LocationAhmedabad

Posted 18 October 2013 - 12:42 PM

Nice article................ ;)


  • lazarus likes this

Fun with Ruby on Rails


#3 Rowel

Rowel

    Controller

  • Members
  • 109 posts

Posted 18 October 2013 - 05:43 PM

Learned something new today. 

 

How do you use these procs & lambdas in a practical way?  Why would one use procs and lambdas instead of plain function methods.  (Really asking an honest question here). 



#4 lazarus

lazarus

    Signalman

  • Members
  • 16 posts
  • LocationGreece

Posted 18 October 2013 - 07:37 PM

Learned something new today. 

 

How do you use these procs & lambdas in a practical way?  Why would one use procs and lambdas instead of plain function methods.  (Really asking an honest question here). 

Hi Rowel,

 

Check this http://augustl.com/b...mous_functions/



#5 Bharat Soni

Bharat Soni

    Dispatcher

  • Members
  • 54 posts
  • LocationAhmedabad

Posted 21 October 2013 - 05:02 AM

Again Nice..................


  • lazarus likes this

Fun with Ruby on Rails


#6 Krista68

Krista68

    Passenger

  • Members
  • 1 posts

Posted 31 December 2013 - 04:39 AM

Thanks for sharing.







Also tagged with one or more of these keywords: ruby, proc, lambda

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users