Class Haml::Helpers::ErrorReturn
In: lib/haml/helpers/xss_mods.rb
lib/haml/helpers.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

inspect   new   to_s  

External Aliases

to_s -> html_safe
  Any attempt to treat ErrorReturn as a string should cause it to blow up.
to_s -> html_safe?
to_s -> html_safe!

Public Class methods

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

Public Instance methods

@return [String] A human-readable string representation

Raises an error.

@raise [Haml::Error] The error

[Validate]