Class: Utopia::Content::MarkupParser::ParsedTag

Inherits:
Object
  • Object
show all
Defined in:
lib/utopia/content/markup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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