Class: MathML::LaTeX::Macro::Command
- Inherits:
-
Object
- Object
- MathML::LaTeX::Macro::Command
- Defined in:
- lib/math_ml.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#num ⇒ Object
readonly
Returns the value of attribute num.
-
#option ⇒ Object
readonly
Returns the value of attribute option.
Instance Method Summary collapse
-
#initialize(n, b, o) ⇒ Command
constructor
A new instance of Command.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
420 421 422 |
# File 'lib/math_ml.rb', line 420 def body @body end |
#num ⇒ Object (readonly)
Returns the value of attribute num.
420 421 422 |
# File 'lib/math_ml.rb', line 420 def num @num end |
#option ⇒ Object (readonly)
Returns the value of attribute option.
420 421 422 |
# File 'lib/math_ml.rb', line 420 def option @option end |