module Temple::Utils
def literal_string?(str)
def literal_string?(str) lexer = RubyLex.new lexer.set_input(StringIO.new(str.strip)) # The first token has to be a string. LITERAL_TOKENS.include?(lexer.token.class) and # That has to be the only token. lexer.token.nil? end