Sha256: 404d825cb3421d123ab0779521940a7c2ac68a2da196528816ed9f2f7140d63d
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
require "generic_color" module RXaal class RGBColor < GenericColor attr_accessor_of_class Integer, :r, :g, :b def initialize(_r, _g, _b) super @r = _r @g = _g @b = _b end def xaal_serialize(parent) elem = Element.new "color" elem.attributes['r'] = r elem.attributes['g'] = g elem.attributes["b"] = b parent.elements << elem end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
RXAAL-0.0.1 | lib/rgb_color.rb |