# File lib/pry/indent.rb, line 241 def tokenize(string) tokens = CodeRay.scan(string, :ruby) tokens = tokens.tokens.each_slice(2) if tokens.respond_to?(:tokens) # Coderay 1.0.0 tokens.to_a end