Method: Librarian::Manifest#exclude_dependencies!
- Defined in:
- lib/librarian/manifest.rb
#exclude_dependencies!(exclusions) ⇒ Object
Remove dependencies excluded, and return them
62 63 64 65 66 |
# File 'lib/librarian/manifest.rb', line 62 def exclude_dependencies!(exclusions) included, excluded = dependencies.partition { |d| !exclusions.include? d.name } self.dependencies = included excluded end |