Class: MathML::Util::MathData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMathData

Returns a new instance of MathData.



50
51
52
53
54
55
56
57
58
59
# File 'lib/math_ml/util.rb', line 50

def initialize
  @math_list = []
  @msrc_list = []
  @dmath_list = []
  @dsrc_list = []
  @escape_list = []
  @esrc_list = []
  @user_list = []
  @usrc_list = []
end

Instance Attribute Details

#dmath_listObject (readonly)

Returns the value of attribute dmath_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def dmath_list
  @dmath_list
end

#dsrc_listObject (readonly)

Returns the value of attribute dsrc_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def dsrc_list
  @dsrc_list
end

#escape_listObject (readonly)

Returns the value of attribute escape_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def escape_list
  @escape_list
end

#esrc_listObject (readonly)

Returns the value of attribute esrc_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def esrc_list
  @esrc_list
end

#math_listObject (readonly)

Returns the value of attribute math_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def math_list
  @math_list
end

#msrc_listObject (readonly)

Returns the value of attribute msrc_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def msrc_list
  @msrc_list
end

#user_listObject (readonly)

Returns the value of attribute user_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def user_list
  @user_list
end

#usrc_listObject (readonly)

Returns the value of attribute usrc_list.



48
49
50
# File 'lib/math_ml/util.rb', line 48

def usrc_list
  @usrc_list
end

Instance Method Details

#update(s) ⇒ Object



61
62
63
64
65
66
67
68
69
70
# File 'lib/math_ml/util.rb', line 61

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