Class Haml::Helpers::ErrorReturn
In: lib/haml/helpers.rb
lib/haml/helpers/xss_mods.rb
Parent: Object

An object that raises an error when \{to_s} is called. It‘s used to raise an error when the return value of a helper is used when it shouldn‘t be.

Methods

html_safe   html_safe!   html_safe?   inspect   new   to_s  

Public Class methods

@param message [String] The error message to raise when \{to_s} is called

Public Instance methods

html_safe()

Alias for to_s

html_safe!()

Alias for to_s

html_safe?()

Alias for to_s

@return [String] A human-readable string representation

Raises an error.

@raise [Haml::Error] The error

[Validate]