Class: Homebrew::ExecutablesDB::Changes Private

Inherits:
Object
  • Object
show all
Defined in:
executables_db.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Constant Summary collapse

TYPES =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

[:add, :remove, :update, :version_bump].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializevoid

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



41
42
43
44
45
46
# File 'executables_db.rb', line 41

def initialize
  @add = T.let(Set.new, T::Set[String])
  @remove = T.let(Set.new, T::Set[String])
  @update = T.let(Set.new, T::Set[String])
  @version_bump = T.let(Set.new, T::Set[String])
end

Instance Attribute Details

#addSet<String>

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



38
39
40
# File 'executables_db.rb', line 38

def add
  @add
end

#removeSet<String>

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



38
39
40
# File 'executables_db.rb', line 38

def remove
  @remove
end

#updateSet<String>

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



38
39
40
# File 'executables_db.rb', line 38

def update
  @update
end

#version_bumpSet<String>

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



38
39
40
# File 'executables_db.rb', line 38

def version_bump
  @version_bump
end

Instance Method Details

#changed?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


49
50
51
# File 'executables_db.rb', line 49

def changed?
  add.any? || remove.any? || update.any? || version_bump.any?
end