Sha256: ff11ffd514003f33afa6a0c3ded4dc89d159179498e326237ffcdae155f95166
Contents?: true
Size: 562 Bytes
Versions: 2
Compression:
Stored size: 562 Bytes
Contents
module SVGen module Nestable def rect(attrs = {}) @children << Element::Rect.new(attrs) end def circle(attrs = {}) @children << Element::Circle.new(attrs) end def text(text, attrs = {}) @children << Element::Text.new(text, attrs) end def line(attrs = {}) @children << Element::Line.new(attrs) end def path(attrs = {}) @children << Element::Path.new(attrs) end def group(attrs = {}, &block) @children << Element::Group.new(attrs, &block) end alias :g :group end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
svgen-0.1.1 | lib/svgen/nestable.rb |
svgen-0.1.0 | lib/svgen/nestable.rb |