Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2016 19:44
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 anonymous/64f0a8cb59982671fef44a75887b89c0 to your computer and use it in GitHub Desktop.
Save anonymous/64f0a8cb59982671fef44a75887b89c0 to your computer and use it in GitHub Desktop.
def gems_where(&block)
%x[gem search \"\"].split("\n").select(&block)
end
p gems_where {|gem| gem.include?("tail")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment