Exception: Utopia::Content::UnbalancedTagError
- Inherits:
-
StandardError
- Object
- StandardError
- Utopia::Content::UnbalancedTagError
- Defined in:
- lib/utopia/content/document.rb
Overview
This error is raised if a tag doesn’t match up when parsing.
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag) ⇒ UnbalancedTagError
constructor
A new instance of UnbalancedTagError.
Constructor Details
#initialize(tag) ⇒ UnbalancedTagError
Returns a new instance of UnbalancedTagError
29 30 31 32 33 |
# File 'lib/utopia/content/document.rb', line 29 def initialize(tag) @tag = tag super "Unbalanced tag #{tag.name}" end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag
35 36 37 |
# File 'lib/utopia/content/document.rb', line 35 def tag @tag end |