Skip to content

Commit

Permalink
fix: future proof initialize wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
d12frosted committed Apr 29, 2023
1 parent 3af308d commit 629c8fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ class EmacsPlusAT28 < EmacsBase
# Initialize
#

def initialize(name, path, spec, alias_path: nil, force_bottle: false, tap: nil)
super
# Save the existing method.
alias :initialize_old :initialize

def initialize(*args, &block)
a = initialize_old(*args, &block)
expand_path
a
end

#
Expand Down
8 changes: 6 additions & 2 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,13 @@ class EmacsPlusAT29 < EmacsBase
# Initialize
#

def initialize(name, path, spec, alias_path: nil, force_bottle: false, tap: nil)
super
# Save the existing method.
alias :initialize_old :initialize

def initialize(*args, &block)
a = initialize_old(*args, &block)
expand_path
a
end

#
Expand Down
8 changes: 6 additions & 2 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,13 @@ class EmacsPlusAT30 < EmacsBase
# Initialize
#

def initialize(name, path, spec, alias_path: nil, force_bottle: false, tap: nil)
super
# Save the existing method.
alias :initialize_old :initialize

def initialize(*args, &block)
a = initialize_old(*args, &block)
expand_path
a
end

#
Expand Down

0 comments on commit 629c8fd

Please sign in to comment.