Class: Ovec::CommentNode

Inherits:
Node
  • Object
show all
Defined in:
lib/ovec/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ CommentNode

Returns a new instance of CommentNode.



6
7
8
# File 'lib/ovec/nodes.rb', line 6

def initialize(content)
	@content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



14
15
16
# File 'lib/ovec/nodes.rb', line 14

def content
  @content
end

Instance Method Details

#to_texObject



10
11
12
# File 'lib/ovec/nodes.rb', line 10

def to_tex
	content
end