# File mrplot.rb, line 98 def text_inrect(string, rect, style, rotation=nil) if string.class == Array then string.each_index { |i| text_inrect(string[i], rect[i], style, rotation) } else position = rect.origin position.x += (rect.width/2) position.y += (rect.height/2) atom_text(string, position, style, :center, :center, rotation) end end