Class: Utopia::Content::Tag

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

Overview

This represents an individual SGML tag, e.g. , or , with attributes. Attribute values must be escaped.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



26
27
28
# File 'lib/utopia/content/tag.rb', line 26

def attributes
  @attributes
end

#closedObject

Returns the value of attribute closed

Returns:

  • (Object)

    the current value of closed



26
27
28
# File 'lib/utopia/content/tag.rb', line 26

def closed
  @closed
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



26
27
28
# File 'lib/utopia/content/tag.rb', line 26

def name
  @name
end