Class: REHTML::Tag

Inherits:
Node
  • Object
show all
Defined in:
lib/rehtml/elements.rb

Direct Known Subclasses

EndTag

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, attributes, empty) ⇒ Tag

Returns a new instance of Tag.



14
15
16
17
18
# File 'lib/rehtml/elements.rb', line 14

def initialize(name,attributes,empty)
  @name = name
  @attributes = attributes
  @empty = empty
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



13
14
15
# File 'lib/rehtml/elements.rb', line 13

def attributes
  @attributes
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/rehtml/elements.rb', line 13

def name
  @name
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/rehtml/elements.rb', line 19

def empty?
  @empty
end