O
Omar Campos
Hi all,
I've noticed that for some methods in some gems, it's necesarry to pass
arguments like this:
method( :arg1 => value, :arg2 => value, :arg3,...)
I use the syntax the same way in the examples and it works, but I'd
like to know what Ruby's doing under there. What is the : and the =>
for anyway? Thanks for any info.
I've noticed that for some methods in some gems, it's necesarry to pass
arguments like this:
method( :arg1 => value, :arg2 => value, :arg3,...)
I use the syntax the same way in the examples and it works, but I'd
like to know what Ruby's doing under there. What is the : and the =>
for anyway? Thanks for any info.