Displaying 1 result from an estimated 1 matches for "ivanpo".
Did you mean:
ivano
2010 Dec 25
7
I sit possible to write it in one line ? Array init + Array loading
I am always writing it in 2 lines : ( Array init then loading the
array )
@providers = []
@authentications.map {|authentification| @providers <<
authentification.provider }
Is there any Ruby writing for writing just one line ?
thanks fyh
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,