Class: Tag
- Inherits:
- SGMLObject show all
- Defined in:
- lib/rwd/sgml.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Attributes inherited from TreeObject
#children, #closed, #level, #parent, #subtype, #text, #upordown, #visible
Instance Method Summary collapse
-
#initialize(subtype, args = {}) ⇒ Tag
constructor
A new instance of Tag.
Methods inherited from SGMLObject
Methods inherited from TreeObject
Methods included from ParseTree
Methods included from 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
#args ⇒ Object
Returns the value of attribute args.
72 73 74 |
# File 'lib/rwd/sgml.rb', line 72 def args @args end |