Class: Utils::Shebang::RewriteInfo

Inherits:
Object
  • Object
show all
Defined in:
brew/Library/Homebrew/utils/shebang.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(regex, max_length, replacement) ⇒ RewriteInfo

Returns a new instance of RewriteInfo.



10
11
12
13
14
# File 'brew/Library/Homebrew/utils/shebang.rb', line 10

def initialize(regex, max_length, replacement)
  @regex = regex
  @max_length = max_length
  @replacement = replacement
end

Instance Attribute Details

#max_lengthObject (readonly)

Returns the value of attribute max_length.



8
9
10
# File 'brew/Library/Homebrew/utils/shebang.rb', line 8

def max_length
  @max_length
end

#regexObject (readonly)

Returns the value of attribute regex.



8
9
10
# File 'brew/Library/Homebrew/utils/shebang.rb', line 8

def regex
  @regex
end

#replacementObject (readonly)

Returns the value of attribute replacement.



8
9
10
# File 'brew/Library/Homebrew/utils/shebang.rb', line 8

def replacement
  @replacement
end