Class: MathML::LaTeX::Macro::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/math_ml/latex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(n, b, o) ⇒ Command

Returns a new instance of Command.



168
169
170
171
172
# File 'lib/math_ml/latex.rb', line 168

def initialize(n, b, o)
	@num = n
	@body = b
	@option = o
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



167
168
169
# File 'lib/math_ml/latex.rb', line 167

def body
  @body
end

#numObject (readonly)

Returns the value of attribute num.



167
168
169
# File 'lib/math_ml/latex.rb', line 167

def num
  @num
end

#optionObject (readonly)

Returns the value of attribute option.



167
168
169
# File 'lib/math_ml/latex.rb', line 167

def option
  @option
end