Class: MathML::LaTeX::Macro::Environment

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, e, o) ⇒ Environment

Returns a new instance of Environment.



182
183
184
185
186
187
# File 'lib/math_ml/latex.rb', line 182

def initialize(n, b, e, o)
  @num = n
  @beginning = b
  @ending = e
  @option = o
end

Instance Attribute Details

#beginningObject (readonly)

Returns the value of attribute beginning.



180
181
182
# File 'lib/math_ml/latex.rb', line 180

def beginning
  @beginning
end

#endingObject (readonly)

Returns the value of attribute ending.



180
181
182
# File 'lib/math_ml/latex.rb', line 180

def ending
  @ending
end

#numObject (readonly)

Returns the value of attribute num.



180
181
182
# File 'lib/math_ml/latex.rb', line 180

def num
  @num
end

#optionObject (readonly)

Returns the value of attribute option.



180
181
182
# File 'lib/math_ml/latex.rb', line 180

def option
  @option
end