Class: Decode::Comment::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/decode/comment/text.rb

Overview

A structured comment.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lineObject (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

#traverseObject

Traverse the text node.



22
23
# File 'lib/decode/comment/text.rb', line 22

def traverse
end