or better


process1 = proc do |number|
   puts number
end

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

def call_two number,*rest
   rest.each do |process|
     process.call number
   end
end

call_two 6, process1, process2

# 6
# 36

if that's @ all what you mean


Tobi


-- 

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