Module: InstallRenamed Private
- Defined in:
- Library/Homebrew/install_renamed.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Helper module for installing default files.
Instance Method Summary collapse
- #+(other) ⇒ Object private
- #/(other) ⇒ Object private
- #cp_path_sub(pattern, replacement) ⇒ Object private
- #install_p(_, new_basename) ⇒ Object private
Instance Method Details
#+(other) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'Library/Homebrew/install_renamed.rb', line 25 def +(other) super(other).extend(InstallRenamed) end |
#/(other) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'Library/Homebrew/install_renamed.rb', line 29 def /(other) super(other).extend(InstallRenamed) end |
#cp_path_sub(pattern, replacement) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 22 23 |
# File 'Library/Homebrew/install_renamed.rb', line 19 def cp_path_sub(pattern, replacement) super do |src, dst| append_default_if_different(src, dst) end end |
#install_p(_, new_basename) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 16 17 |
# File 'Library/Homebrew/install_renamed.rb', line 8 def install_p(_, new_basename) super do |src, dst| if src.directory? dst.install(src.children) next else append_default_if_different(src, dst) end end end |