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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(n, b, o) ⇒ Command

Returns a new instance of Command.



421
422
423
424
425
# File 'lib/math_ml.rb', line 421

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



420
421
422
# File 'lib/math_ml.rb', line 420

def body
  @body
end

#numObject (readonly)

Returns the value of attribute num.



420
421
422
# File 'lib/math_ml.rb', line 420

def num
  @num
end

#optionObject (readonly)

Returns the value of attribute option.



420
421
422
# File 'lib/math_ml.rb', line 420

def option
  @option
end