Permalink
Browse files

Simple content changes in scrabook

  • Loading branch information...
1 parent 3642892 commit 066e52d9e5df54e86518fd7ca4c499cd534d8fa8 @equivalent committed Feb 27, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 wisdom_inside/scraps/microblog
@@ -1,4 +1,13 @@
+# easy way to get whole alphabet
+
+ ('a'..'z') #range object of chars from a-z
+ ('a'..'z').to_a #array of chars from a-z
+
+ ('a'..'z').to_a.in_groups_of(9,false)
+ # => [["a", "b", "c", "d", "e", "f", "g", "h", "i"], ["j", "k", "l", "m", "n", "o", "p", "q", "r"], ["s", "t", "u", "v", "w", "x", "y", "z"]
+
+key: abcd
# get element tag name

0 comments on commit 066e52d

Please sign in to comment.