# File lib/uri_template/colon.rb, line 202 def tokenize! number_of_splats = 0 RegexpEnumerator.new(VAR).each(@pattern).map{|x| if x.kind_of? String Token::Static.new(Utils.escape_uri(x)) elsif x[0] == '*' n = number_of_splats number_of_splats = number_of_splats + 1 Token::Splat.new(n) else # TODO: when rubinius supports ambigious names this could be replaced with x['name'] *sigh* Token::Variable.new(x[1] || x[2]) end }.to_a end