J
Just Another Victim of the Ambient Morality
I've seen this in some ruby code but I have no idea what is going on.
I'd do a google search on it but... I don't search for '=>' and I don't know
how to describe it in english so that the context will be this!
I've seen this operator used in, what seems to me, to be totally bizarre
contexts. As far as I know, it's only used in hash definitions. However,
it's used in both Rails and scRUBYt. It looks something like this:
method_call :symbol => false do
# do something here
end
another_method random_var, :symbol => ther_symbol do
# do something else
end
Can someone explain to me what is going on here?
Thank you...
I'd do a google search on it but... I don't search for '=>' and I don't know
how to describe it in english so that the context will be this!
I've seen this operator used in, what seems to me, to be totally bizarre
contexts. As far as I know, it's only used in hash definitions. However,
it's used in both Rails and scRUBYt. It looks something like this:
method_call :symbol => false do
# do something here
end
another_method random_var, :symbol => ther_symbol do
# do something else
end
Can someone explain to me what is going on here?
Thank you...