Skip to content

Instantly share code, notes, and snippets.

@jbarnette
Created September 26, 2008 19:54
Show Gist options
  • Save jbarnette/13187 to your computer and use it in GitHub Desktop.
Save jbarnette/13187 to your computer and use it in GitHub Desktop.
class Array
def poke(item, &block)
push(item)
yield(item)
pop
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment