Class: Decode::Comment::Text
- Inherits:
-
Object
- Object
- Decode::Comment::Text
- Defined in:
- lib/decode/comment/text.rb
Overview
A structured comment.
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
- #The text content.(textcontent.) ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(line) ⇒ Text
constructor
Initialize a new text node.
-
#traverse ⇒ Object
Traverse the text node.
Constructor Details
#initialize(line) ⇒ Text
Initialize a new text node.
14 15 16 |
# File 'lib/decode/comment/text.rb', line 14 def initialize(line) @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
19 20 21 |
# File 'lib/decode/comment/text.rb', line 19 def line @line end |
#The text content.(textcontent.) ⇒ Object (readonly)
19 |
# File 'lib/decode/comment/text.rb', line 19 attr :line |
Instance Method Details
#traverse ⇒ Object
Traverse the text node.
22 23 |
# File 'lib/decode/comment/text.rb', line 22 def traverse end |