class Haml::CLI
def validate_ruby(code, file)
def validate_ruby(code, file) begin eval("BEGIN {return nil}; #{code}", binding, file) rescue ::SyntaxError # Not to be confused with Haml::SyntaxError $! end end
def validate_ruby(code, file) begin eval("BEGIN {return nil}; #{code}", binding, file) rescue ::SyntaxError # Not to be confused with Haml::SyntaxError $! end end