mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
14 lines
261 B
Ruby
14 lines
261 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
source = ARGV[5]
|
|
|
|
source.scan(/:([^\s,]+)/).flatten.each do |method|
|
|
puts <<~RUBY
|
|
# typed: strict
|
|
|
|
sig { params(arg: T.untyped).returns(T.untyped) }
|
|
def #{method}(arg = T.unsafe(nil)); end
|
|
RUBY
|
|
end
|