mirror of
https://github.com/ivuorinen/homebrew-tap.git
synced 2026-03-13 14:01:00 +00:00
refactor: fix Style/OneClassPerFile by extracting top-level definitions into separate files (#18)
This commit is contained in:
10
scripts/string_extensions.rb
Normal file
10
scripts/string_extensions.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Simple polyfill for Homebrew extensions
|
||||
class String
|
||||
def blank?
|
||||
# Polyfill implementation to avoid external dependencies
|
||||
nil? || empty? # rubocop:disable Homebrew/Blank, Lint/RedundantCopDisableDirective
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user