Skip to content

Instantly share code, notes, and snippets.

@jagregory
Created June 26, 2012 12:19
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 jagregory/2995520 to your computer and use it in GitHub Desktop.
Save jagregory/2995520 to your computer and use it in GitHub Desktop.
Improvements?
objects
.map(&method(:shared_map_method))
.select(&method(:shared_select_method))
.compact
def shared_map_method(x)
...
end
def shared_select_method(x)
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment