Class: Haml::Helpers::ErrorReturn
Overview
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.
Instance Method Summary collapse
-
#initialize(message) ⇒ ErrorReturn
constructor
A new instance of ErrorReturn.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(message) ⇒ ErrorReturn
Returns a new instance of ErrorReturn.
14 15 16 |
# File 'lib/haml/helpers.rb', line 14 def initialize() @message = end |