Class: MathML::Util::MathData
- Inherits:
-
Object
- Object
- MathML::Util::MathData
- Defined in:
- lib/math_ml/util.rb
Instance Attribute Summary collapse
-
#dmath_list ⇒ Object
readonly
Returns the value of attribute dmath_list.
-
#dsrc_list ⇒ Object
readonly
Returns the value of attribute dsrc_list.
-
#escape_list ⇒ Object
readonly
Returns the value of attribute escape_list.
-
#esrc_list ⇒ Object
readonly
Returns the value of attribute esrc_list.
-
#math_list ⇒ Object
readonly
Returns the value of attribute math_list.
-
#msrc_list ⇒ Object
readonly
Returns the value of attribute msrc_list.
-
#user_list ⇒ Object
readonly
Returns the value of attribute user_list.
-
#usrc_list ⇒ Object
readonly
Returns the value of attribute usrc_list.
Instance Method Summary collapse
-
#initialize ⇒ MathData
constructor
A new instance of MathData.
- #update(s) ⇒ Object
Constructor Details
#initialize ⇒ MathData
Returns a new instance of MathData.
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/math_ml/util.rb', line 46 def initialize @math_list = [] @msrc_list = [] @dmath_list = [] @dsrc_list = [] @escape_list = [] @esrc_list = [] @user_list = [] @usrc_list = [] end |
Instance Attribute Details
#dmath_list ⇒ Object (readonly)
Returns the value of attribute dmath_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def dmath_list @dmath_list end |
#dsrc_list ⇒ Object (readonly)
Returns the value of attribute dsrc_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def dsrc_list @dsrc_list end |
#escape_list ⇒ Object (readonly)
Returns the value of attribute escape_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def escape_list @escape_list end |
#esrc_list ⇒ Object (readonly)
Returns the value of attribute esrc_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def esrc_list @esrc_list end |
#math_list ⇒ Object (readonly)
Returns the value of attribute math_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def math_list @math_list end |
#msrc_list ⇒ Object (readonly)
Returns the value of attribute msrc_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def msrc_list @msrc_list end |
#user_list ⇒ Object (readonly)
Returns the value of attribute user_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def user_list @user_list end |
#usrc_list ⇒ Object (readonly)
Returns the value of attribute usrc_list.
45 46 47 |
# File 'lib/math_ml/util.rb', line 45 def usrc_list @usrc_list end |
Instance Method Details
#update(s) ⇒ Object
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/math_ml/util.rb', line 57 def update(s) @math_list.concat(s.math_list) @msrc_list.concat(s.msrc_list) @dmath_list.concat(s.dmath_list) @dsrc_list.concat(s.dsrc_list) @escape_list.concat(s.escape_list) @esrc_list.concat(s.esrc_list) @user_list.concat(s.user_list) @usrc_list.concat(s.usrc_list) end |