class Haml::Parser
def script(line, escape_html = nil, preserve = false)
def script(line, escape_html = nil, preserve = false) raise SyntaxError.new(Error.message(:no_ruby_code, '=')) if line.text.empty? line = handle_ruby_multiline(line) escape_html = @options.escape_html if escape_html.nil? keyword = block_keyword(line.text) check_push_script_stack(keyword) ParseNode.new(:script, line.index + 1, :text => line.text, :escape_html => escape_html, :preserve => preserve, :keyword => keyword) end