Skip to content

Instantly share code, notes, and snippets.

@silasb
Created November 13, 2009 22:20
Show Gist options
  • Save silasb/234221 to your computer and use it in GitHub Desktop.
Save silasb/234221 to your computer and use it in GitHub Desktop.
# how should we handle when columns are 0 (which happen quite a bit)?
# I was thinking like this
Formula.counta(:rows => 20..30)
# => R[20]C:R[30]C
# Obviously there is a trade off on readability and code density
# So the question, I guess, is requiring :col in the case of :rows required or can it be omitted?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment