Skip to main content

Vincent Tsao's Library tagged tutorial   View Popular, Search in Google

Jul
28
2009

lots of useful example here

android Tutorial

in list: Andriod

Sep
15
2009

  • Procs play the role of functions in Ruby. It is more accurate to call them function objects, since like everything in Ruby they are objects. Such objects have a name in the folklore - functors. A functor is defined as an object to be invoked or called as if it were an ordinary function, usually with the same syntax, which is exactly what a Proc is.
  • Actually, there are two slight differences between lambda and Proc.new. First, argument checking. The Ruby documentation for lambda states: Equivalent to Proc.new, except the resulting Proc objects check the number of parameters passed when called.. Here is an example to demonstrate this:
  • 6 more annotation(s)...
Jul
9
2007

  • As you can see, there is only one step to get access to your models, the "=> :environment" thing:
    • As you can see, there is only one step to get access to your models, the "=> :environment" thing:

        
         
      1. task(:send_expire_soon_emails => :environment) do
      2.  
        

      To run this task on my development db I would run "rake utils:send_expire_soon_emails". If I wanted to run this on my production database, I would run "rake RAILS_ENV=production utils:send_expire_soon_emails".

  • 1 more annotation(s)...
1 - 20 of 29 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo
Move to top