Class: Utils::Shebang::RewriteInfo Private
- Inherits:
-
Object
- Object
- Utils::Shebang::RewriteInfo
- Extended by:
- T::Sig
- Defined in:
- brew/Library/Homebrew/utils/shebang.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Specification on how to rewrite a given shebang.
Instance Attribute Summary collapse
-
#max_length ⇒ Object
readonly
private
-
#regex ⇒ Object
readonly
private
-
#replacement ⇒ Object
readonly
private
Instance Method Summary collapse
-
#initialize(regex, max_length, replacement) ⇒ void
constructor
private
Constructor Details
#initialize(regex, max_length, replacement) ⇒ void
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.
22 23 24 25 26 |
# File 'brew/Library/Homebrew/utils/shebang.rb', line 22 def initialize(regex, max_length, replacement) @regex = regex @max_length = max_length @replacement = replacement end |
Instance Attribute Details
#max_length ⇒ Object (readonly)
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 |
# File 'brew/Library/Homebrew/utils/shebang.rb', line 19 def max_length @max_length end |
#regex ⇒ Object (readonly)
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 |
# File 'brew/Library/Homebrew/utils/shebang.rb', line 19 def regex @regex end |
#replacement ⇒ Object (readonly)
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 |
# File 'brew/Library/Homebrew/utils/shebang.rb', line 19 def replacement @replacement end |