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.



172
173
174
175
176
# File 'lib/math_ml/latex.rb', line 172

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



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

def body
  @body
end

#numObject (readonly)

Returns the value of attribute num.



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

def num
  @num
end

#optionObject (readonly)

Returns the value of attribute option.



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

def option
  @option
end