David Corbin wrote:


> 2) Is it possible to pass multiple blocks to a method?  If so, how does 
> one distinguish between them when yielding?



process1 = proc do |number|
   puts number
end

process2 =  proc do |number|
    puts number * number
end

def call_two number,p1,p2
   p1.call number
   p2.call number
end

call_two 6, process1, process2

# 6
# 36

HTH,
Tobi

-- 

* peace&love.
* http://www.pinkjuice.com/