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