Class: Tag

Inherits:
SGMLObject show all
Defined in:
lib/rwd/sgml.rb

Direct Known Subclasses

CloseTag, OpenTag

Instance Attribute Summary collapse

Attributes inherited from TreeObject

#children, #closed, #level, #parent, #subtype, #text, #upordown, #visible

Instance Method Summary collapse

Methods inherited from SGMLObject

#to_h, #to_s, #to_x

Methods inherited from TreeObject

#inspect, #previous

Methods included from ParseTree

#parsetree

Methods included from TextArray

#textarray

Constructor Details

#initialize(subtype, args = {}) ⇒ Tag

Returns a new instance of Tag.



75
76
77
78
79
# File 'lib/rwd/sgml.rb', line 75

def initialize(subtype, args={})
  super(subtype)
  @args = args
  @text = ""
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



72
73
74
# File 'lib/rwd/sgml.rb', line 72

def args
  @args
end