In ruby a minus on an array removes elements. So its removing elements from the array. On Sep 8, 2012 1:42 PM, "John Merlino" <stoici...@aol.com> wrote:
> In the example below, what is the dash doing between the class > attribute and array: > > (field_helpers - > [:label, :check_box, :radio_button, :fields_for, :hidden_field, > :file_field]).each > do |selector| > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.