I
Iván Vega Rivera
Hi,
I'm a Ruby beginner, but I remember I read somewhere something
related... Only at the time I didn't realize it's usefulness until
now.
Maybe I'm mistaken, but is it possible to pass the same argument(s) to
several functions at once?
Like:
function_a 'something'
function_b 'something'
Instead something like:
'something'.pass do |arg|
function_a arg
function_b arg
end
Does that make sense?
Thanks in advance!
Ivan V.
I'm a Ruby beginner, but I remember I read somewhere something
related... Only at the time I didn't realize it's usefulness until
now.
Maybe I'm mistaken, but is it possible to pass the same argument(s) to
several functions at once?
Like:
function_a 'something'
function_b 'something'
Instead something like:
'something'.pass do |arg|
function_a arg
function_b arg
end
Does that make sense?
Thanks in advance!
Ivan V.