Class: Ovec::CommandsNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ CommandsNode

Returns a new instance of CommandsNode.



56
57
58
# File 'lib/ovec/nodes.rb', line 56

def initialize(content)
	@content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



64
65
66
# File 'lib/ovec/nodes.rb', line 64

def content
  @content
end

Instance Method Details

#to_texObject



60
61
62
# File 'lib/ovec/nodes.rb', line 60

def to_tex
	"\\#{content}"
end