Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created April 2, 2012 21:31
Show Gist options
  • Save luckyruby/2287372 to your computer and use it in GitHub Desktop.
Save luckyruby/2287372 to your computer and use it in GitHub Desktop.
result = []
supported_cartypes.each {|i| result << i.name if i.position.to_i >= minimum_cartype.position}
result.concat supported_cartypes.select {|i| i.position.to_i >= minimum_cartype.position}.map(&:name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment