You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tokenizer.rb
    path of file: ./repos/picky/server/lib/picky
    
    the code of the file until where you have to start completion: # encoding: utf-8
#
module Pi
    
    def splits_text_on thing
      raise ArgumentError.new "#{__method__} takes a Regexp or a thing that responds to #split as argument, not a #{thing.class}." unless Regexp === thing || thing.respond_to?(:split)
      @splits_text_on = if thing.respond_to? :split
        thing
      else
        RegexpWrapper.new thing
      end