Class: Ovec::CommandsNode
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content) ⇒ CommandsNode
constructor
A new instance of CommandsNode.
- #to_tex ⇒ Object
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
#content ⇒ Object (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_tex ⇒ Object
60 61 62 |
# File 'lib/ovec/nodes.rb', line 60 def to_tex "\\#{content}" end |