Class: Homebrew::ExecutablesDB::Changes Private
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
- #add ⇒ Set<String> private
- #remove ⇒ Set<String> private
- #update ⇒ Set<String> private
- #version_bump ⇒ Set<String> private
Instance Method Summary collapse
- #changed? ⇒ Boolean private
- #initialize ⇒ void constructor private
Constructor Details
#initialize ⇒ void
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
#add ⇒ Set<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.
38 39 40 |
# File 'executables_db.rb', line 38 def add @add end |
#remove ⇒ Set<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.
38 39 40 |
# File 'executables_db.rb', line 38 def remove @remove end |
#update ⇒ Set<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.
38 39 40 |
# File 'executables_db.rb', line 38 def update @update end |
#version_bump ⇒ Set<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.
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.
49 50 51 |
# File 'executables_db.rb', line 49 def changed? add.any? || remove.any? || update.any? || version_bump.any? end |