Exception: Utopia::Content::UnbalancedTagError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ UnbalancedTagError

Returns a new instance of UnbalancedTagError.



15
16
17
18
19
# File 'lib/utopia/content/document.rb', line 15

def initialize(tag)
  @tag = tag
  
  super "Unbalanced tag #{tag.name}"
end

Instance Attribute Details

#tagObject (readonly)

Returns the value of attribute tag.



21
22
23
# File 'lib/utopia/content/document.rb', line 21

def tag
  @tag
end