Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Forked from dyoder/dependencies.rb
Created September 9, 2008 05:04
Show Gist options
  • Save ab5tract/9613 to your computer and use it in GitHub Desktop.
Save ab5tract/9613 to your computer and use it in GitHub Desktop.
def self.dependencies( *args )
self['dependencies'] ||= Set.new
args.length == 0 ? self['dependencies'] + gems.dependencies :
( self['dependencies'] += ( args - gems.dependencies ) )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment