Class: Utopia::Content::MarkupParser::ParsedTag
- Inherits:
-
Object
- Object
- Utopia::Content::MarkupParser::ParsedTag
- Defined in:
- lib/utopia/content/markup.rb
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(name, offset) ⇒ ParsedTag
constructor
A new instance of ParsedTag.
- #to_s ⇒ Object
Constructor Details
#initialize(name, offset) ⇒ ParsedTag
Returns a new instance of ParsedTag.
54 55 56 57 |
# File 'lib/utopia/content/markup.rb', line 54 def initialize(name, offset) @offset = offset @tag = Tag.new(name, false, SymbolicHash.new) end |
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
60 61 62 |
# File 'lib/utopia/content/markup.rb', line 60 def offset @offset end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
59 60 61 |
# File 'lib/utopia/content/markup.rb', line 59 def tag @tag end |
Instance Method Details
#to_s ⇒ Object
62 63 64 |
# File 'lib/utopia/content/markup.rb', line 62 def to_s "<#{@tag.name}#{@tag.attributes.empty? ? '' : ' ...'}>" end |