Skip to content

Instantly share code, notes, and snippets.

@ericgj
Created February 27, 2012 16:04
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 ericgj/1924971 to your computer and use it in GitHub Desktop.
Save ericgj/1924971 to your computer and use it in GitHub Desktop.
Several things I learned this week: 27 Feb
1. Two different uses for DelegateClass [newman-scheduler]
2. Array() top-level function works on any Enumerable
x = 'a'
y = %w[a b c]
z = (0..9)
Array(x) #=> ['a']
Array(y) #=> ['a','b','c']
Array(z) #=> [0,1,2,3,4,5,6,7,8,9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment