Class: Srgs::Tag
- Inherits:
-
Object
- Object
- Srgs::Tag
- Defined in:
- lib/srgs/elements/tag.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(text) ⇒ Tag
Returns a new instance of Tag.
6 7 8 |
# File 'lib/srgs/elements/tag.rb', line 6 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/srgs/elements/tag.rb', line 4 def text @text end |