Method: Connect::Dsl#tokenize

Defined in:
lib/connect/lexer.rb

#tokenize(code) ⇒ Object

[View source]

164
165
166
167
168
169
170
171
# File 'lib/connect/lexer.rb', line 164

def tokenize(code)
  scan_setup(code)
  tokens = []
  while token = next_token
    tokens << token
  end
  tokens
end