Ruby script demonstrates string array filtering using the class.each method implemented using method calls