MathML::Table

Public Class Methods

new() click to toggle source
     # File lib/math_ml/element.rb, line 183
183:                 def initialize
184:                         super("mtable")
185:                 end

Public Instance Methods

aligns=(a) click to toggle source
     # File lib/math_ml/element.rb, line 203
203:                 def aligns=(a)
204:                         set_align_attribute("columnalign", a, Align::CENTER)
205:                 end
hlines=(a) click to toggle source
     # File lib/math_ml/element.rb, line 211
211:                 def hlines=(a)
212:                         set_align_attribute("rowlines", a, Line::NONE)
213:                 end
set_align_attribute(name, a, default) click to toggle source
     # File lib/math_ml/element.rb, line 187
187:                 def set_align_attribute(name, a, default)
188:                         if a.is_a?(Array) && a.size>0
189:                                 value = ""
190:                                 a.each do |i|
191:                                         value << " "+i
192:                                 end
193:                                 if value =~ /^( #{default})*$/
194:                                         @attributes.delete(name)
195:                                 else
196:                                         @attributes[name] = value.strip
197:                                 end
198:                         else
199:                                 @attributes.delete(name)
200:                         end
201:                 end
vlines=(a) click to toggle source
     # File lib/math_ml/element.rb, line 207
207:                 def vlines=(a)
208:                         set_align_attribute("columnlines", a, Line::NONE)
209:                 end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.