Hello

How to pass reference to a class in Ruby?

For example:-

def func(x)
    x = x+1
end

a = 5
func(a)
puts a

Regards

Tridib

-- 
Posted via http://www.ruby-forum.com/.