Exception: Fortitude::Errors::NoContentAllowed
- Defined in:
- lib/fortitude/errors.rb
Instance Attribute Summary collapse
-
#widget ⇒ Object
readonly
Returns the value of attribute widget.
Instance Method Summary collapse
-
#initialize(widget, tag) ⇒ NoContentAllowed
constructor
A new instance of NoContentAllowed.
- #tag_name ⇒ Object
Constructor Details
#initialize(widget, tag) ⇒ NoContentAllowed
Returns a new instance of NoContentAllowed.
113 114 115 116 117 118 119 120 121 122 |
# File 'lib/fortitude/errors.rb', line 113 def initialize(, tag) = %{The widget #{} tried to render an element, <#{tag.name}>, with content inside it, but that element doesn't accept content.} if tag.spec << " (See '#{tag.spec}' for more details.)" end super() @widget = @tag = tag end |
Instance Attribute Details
#widget ⇒ Object (readonly)
Returns the value of attribute widget.
111 112 113 |
# File 'lib/fortitude/errors.rb', line 111 def @widget end |
Instance Method Details
#tag_name ⇒ Object
124 125 126 |
# File 'lib/fortitude/errors.rb', line 124 def tag_name @tag end |