git grep -lE '\(\&[A-Za-z._]+method\(:' | xargs gsed -i -E 's|\(\&([A-Za-z._]+)public_method\(:([a-z?_]+)\)\)| { \1\2(_1) }|g'
This commit is contained in:
parent
53c1107fd2
commit
90996e1997
@ -90,7 +90,7 @@ module Cask
|
||||
.stdout
|
||||
.split("\n")
|
||||
.map { |path| root.join(path) }
|
||||
.reject(&MacOS.public_method(:undeletable?))
|
||||
.reject { MacOS.undeletable?(_1) }
|
||||
end
|
||||
|
||||
sig { returns(Pathname) }
|
||||
|
||||
@ -679,7 +679,7 @@ module Homebrew
|
||||
|
||||
class OptionConflictError < UsageError
|
||||
def initialize(args)
|
||||
args_list = args.map(&Formatter.public_method(:option))
|
||||
args_list = args.map { Formatter.option(_1) }
|
||||
.join(" and ")
|
||||
super "Options #{args_list} are mutually exclusive."
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user