Class: MathML::LaTeX::Macro::Command
- Inherits:
-
Object
- Object
- MathML::LaTeX::Macro::Command
- Defined in:
- lib/math_ml/latex.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.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
167 168 169 |
# File 'lib/math_ml/latex.rb', line 167 def body @body end |
#num ⇒ Object (readonly)
Returns the value of attribute num.
167 168 169 |
# File 'lib/math_ml/latex.rb', line 167 def num @num end |
#option ⇒ Object (readonly)
Returns the value of attribute option.
167 168 169 |
# File 'lib/math_ml/latex.rb', line 167 def option @option end |