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.
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! |