lib/websocket/frame/handler/base.rb in websocket-1.2.4 vs lib/websocket/frame/handler/base.rb in websocket-1.2.5

- old
+ new

@@ -22,17 +22,17 @@ # Check if frame is one of control frames # @param [Symbol] frame_type Frame type # @return [Boolean] True if given frame type is control frame def control_frame?(frame_type) - ![:text, :binary, :continuation].include?(frame_type) + !%i(text binary continuation).include?(frame_type) end # Check if frame is one of data frames # @param [Symbol] frame_type Frame type # @return [Boolean] True if given frame type is data frame def data_frame?(frame_type) - [:text, :binary].include?(frame_type) + %i(text binary).include?(frame_type) end end end end end