The splat operator in Ruby
The splat operator in Ruby, Groovy and Perl allows you to switch between parameters and arrays: it splits a list in a series of parameters, or collects a series of parameters to fill an array. The...
View ArticleInternationalize (I18n) an Array of Strings in Rails
Sometimes you would like to define an array of strings in your YAML config files, for example in the YAML text files in config/locales which define your translations. It is possible to define arrays in...
View Article
More Pages to Explore .....