diff options
Diffstat (limited to 'lib/scale/circle.rb')
| -rw-r--r-- | lib/scale/circle.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/scale/circle.rb b/lib/scale/circle.rb new file mode 100644 index 0000000..edf8e6c --- /dev/null +++ b/lib/scale/circle.rb @@ -0,0 +1,17 @@ +module Scale + class Circle + include Node + include Virtus.model + attribute :cx, Integer + attribute :cy, Integer + attribute :r, Integer + + def xml_tag + :circle + end + + def attributes + super.delete_if { |key, value| value.nil? } + end + end +end |
