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.



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_listObject (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_listObject (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_listObject (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_listObject (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_listObject (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_listObject (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_listObject (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_listObject (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