Skip to content

Instantly share code, notes, and snippets.

@andkerosine
Created October 24, 2012 03:08
Show Gist options
  • Save andkerosine/3943454 to your computer and use it in GitHub Desktop.
Save andkerosine/3943454 to your computer and use it in GitHub Desktop.
cls = "single#{i.zero? ? " first" : i == images.size - 1 ? " last" : ""}"
cls = "single" + {0 => " first", images.size - 1 => " last"}[i]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment