Sha256: cf751f8d65737b8383375d07efbebee2f17b699d3a23b6616b1ef970bd02779f
Contents?: true
Size: 267 Bytes
Versions: 1
Compression:
Stored size: 267 Bytes
Contents
module Jpeg Color = Struct.new(:r, :g, :b) do def rgb [r, g, b] end alias_method :to_a, :rgb def to_s format '#%02x%02x%02x', *rgb end def inspect format '<Jpeg::Color r=0x%02x g=0x%02x b=0x%02x>', *rgb end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jpeg-0.7.1 | lib/jpeg/color.rb |