class Haml::Error
An exception raised by Haml code.
def self.message(key, *args)
def self.message(key, *args) string = MESSAGES[key] or raise "[HAML BUG] No error messages for #{key}" (args.empty? ? string : string % args).rstrip end
def initialize(message = nil, line = nil)
-
line
(Fixnum
) -- See \{#line} -
message
(String
) -- The error message
def initialize(message = nil, line = nil) super(message) @line = line end