Skip to content

Instantly share code, notes, and snippets.

@sirramongabriel
Created November 7, 2013 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirramongabriel/7357919 to your computer and use it in GitHub Desktop.
Save sirramongabriel/7357919 to your computer and use it in GitHub Desktop.
color_list = [:red, :blue, :green, :white, :brown, :orange, :black]
big_colors = []
color_list.each do |color|
if color.size > 4
big_colors << color
end
end
big_colors # => [:green, :white, :brown, :orange, :black]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment