Class: Doubleshot::Dependencies

Inherits:
Object
  • Object
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

#initializeDependencies

Returns a new instance of Dependencies.



7
8
9
10
# File 'lib/doubleshot/dependencies.rb', line 7

def initialize
  @gems = GemDependencyList.new
  @jars = JarDependencyList.new
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/doubleshot/dependencies.rb', line 20

def empty?
  @gems.empty? && @jars.empty?
end

#eql?(other) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


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

#gemsObject



12
13
14
# File 'lib/doubleshot/dependencies.rb', line 12

def gems
  @gems
end

#jarsObject



16
17
18
# File 'lib/doubleshot/dependencies.rb', line 16

def jars
  @jars
end