Skip to content

Instantly share code, notes, and snippets.

@dfinninger
Created December 31, 2014 18:49
Show Gist options
  • Save dfinninger/5f518a8ebe66d432317f to your computer and use it in GitHub Desktop.
Save dfinninger/5f518a8ebe66d432317f to your computer and use it in GitHub Desktop.
Get a method chain long enough in Ruby and it starts to look like prolog...
Array.new.
concat(included_module_names).
concat(external_module_names).
uniq.sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment