mirror of
https://github.com/ivuorinen/homebrew-tap.git
synced 2026-03-14 02:01:06 +00:00
refactor: fix Style/OneClassPerFile by extracting top-level definitions into separate files (#18)
This commit is contained in:
9
scripts/array_extensions.rb
Normal file
9
scripts/array_extensions.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Simple polyfill for Homebrew extensions
|
||||
class Array
|
||||
def exclude?(item)
|
||||
!include?(item)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user