class DYI::Shape::ShapeGroup
Attributes
child_elements[R]
Public Class Methods
draw_on(canvas, options = {})
click to toggle source
# File lib/dyi/shape/base.rb, line 857 def draw_on(canvas, options = {}) new(options).draw_on(canvas) end
new(options={})
click to toggle source
@option options [String] :description the description of this group @option options [String] :title the title of this group
# File lib/dyi/shape/base.rb, line 837 def initialize(options={}) @attributes = init_attributes(options) @child_elements = [] end
Public Instance Methods
height()
click to toggle source
# File lib/dyi/shape/base.rb, line 846 def height Length.new_or_nil(@attributes[:height]) end
width()
click to toggle source
# File lib/dyi/shape/base.rb, line 842 def width Length.new_or_nil(@attributes[:width]) end
write_as(formatter, io=$>)
click to toggle source
# File lib/dyi/shape/base.rb, line 850 def write_as(formatter, io=$>) formatter.write_group(self, io, &(block_given? ? Proc.new : nil)) end