| 
									
										
										
										
											2024-01-11 13:42:38 -08:00
										 |  |  | # typed: strict | 
					
						
							| 
									
										
										
										
											2023-11-29 15:18:14 +00:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class String | 
					
						
							|  |  |  |   # The inverse of <tt>String#include?</tt>. Returns true if the string | 
					
						
							|  |  |  |   # does not include the other string. | 
					
						
							|  |  |  |   # | 
					
						
							|  |  |  |   #   "hello".exclude? "lo" # => false | 
					
						
							|  |  |  |   #   "hello".exclude? "ol" # => true | 
					
						
							|  |  |  |   #   "hello".exclude? ?h   # => false | 
					
						
							| 
									
										
										
										
											2024-01-11 13:42:38 -08:00
										 |  |  |   sig { params(string: String).returns(T::Boolean) } | 
					
						
							|  |  |  |   def exclude?(string) = !include?(string) | 
					
						
							| 
									
										
										
										
											2023-11-29 15:18:14 +00:00
										 |  |  | end |