Class: Doubleshot::Dependencies
- Inherits:
-
Object
- Object
- Doubleshot::Dependencies
show all
- Defined in:
- lib/doubleshot/dependencies.rb,
lib/doubleshot/dependencies/dependency.rb,
lib/doubleshot/dependencies/gem_dependency.rb,
lib/doubleshot/dependencies/jar_dependency.rb,
lib/doubleshot/dependencies/dependency_list.rb,
lib/doubleshot/dependencies/gem_dependency_list.rb,
lib/doubleshot/dependencies/jar_dependency_list.rb
Defined Under Namespace
Classes: Dependency, DependencyList, GemDependency, GemDependencyList, JarDependency, JarDependencyList
Instance Method Summary
collapse
Constructor Details
Returns a new instance of Dependencies.
Instance Method Details
#empty? ⇒ Boolean
20
21
22
|
# File 'lib/doubleshot/dependencies.rb', line 20
def empty?
@gems.empty? && @jars.empty?
end
|
#eql?(other) ⇒ Boolean
Also known as:
==
24
25
26
27
28
|
# File 'lib/doubleshot/dependencies.rb', line 24
def eql?(other)
other.is_a?(self.class) &&
other.gems == gems &&
other.jars == jars
end
|
12
13
14
|
# File 'lib/doubleshot/dependencies.rb', line 12
def gems
@gems
end
|
16
17
18
|
# File 'lib/doubleshot/dependencies.rb', line 16
def jars
@jars
end
|