Exception: Fortitude::Errors::InvalidElementNesting
- Defined in:
- lib/fortitude/errors.rb
Instance Attribute Summary collapse
-
#enclosed_element_name ⇒ Object
readonly
Returns the value of attribute enclosed_element_name.
-
#enclosing_element_name ⇒ Object
readonly
Returns the value of attribute enclosing_element_name.
-
#widget ⇒ Object
readonly
Returns the value of attribute widget.
Instance Method Summary collapse
- #enclosed_tag_name ⇒ Object
- #enclosing_tag_name ⇒ Object
-
#initialize(widget, enclosing_tag, enclosed_tag) ⇒ InvalidElementNesting
constructor
A new instance of InvalidElementNesting.
Constructor Details
#initialize(widget, enclosing_tag, enclosed_tag) ⇒ InvalidElementNesting
Returns a new instance of InvalidElementNesting.
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/fortitude/errors.rb', line 44 def initialize(, enclosing_tag, enclosed_tag) = %{The widget #{} tried to render an element that is not allowed by element nesting rules: you can't put a <#{enclosed_tag.name}> inside a <#{enclosing_tag.name}>.} if enclosing_tag.spec << " (See '#{enclosing_tag.spec}' for more details.)" end super() @widget = @enclosing_tag = enclosing_tag @enclosed_tag = enclosed_tag end |
Instance Attribute Details
#enclosed_element_name ⇒ Object (readonly)
Returns the value of attribute enclosed_element_name.
42 43 44 |
# File 'lib/fortitude/errors.rb', line 42 def enclosed_element_name @enclosed_element_name end |
#enclosing_element_name ⇒ Object (readonly)
Returns the value of attribute enclosing_element_name.
42 43 44 |
# File 'lib/fortitude/errors.rb', line 42 def enclosing_element_name @enclosing_element_name end |
#widget ⇒ Object (readonly)
Returns the value of attribute widget.
42 43 44 |
# File 'lib/fortitude/errors.rb', line 42 def @widget end |
Instance Method Details
#enclosed_tag_name ⇒ Object
60 61 62 |
# File 'lib/fortitude/errors.rb', line 60 def enclosed_tag_name @enclosed_tag.name end |
#enclosing_tag_name ⇒ Object
56 57 58 |
# File 'lib/fortitude/errors.rb', line 56 def enclosing_tag_name @enclosing_tag.name end |