Sha256: 2032038cd902ae20eab8d1211e7d990eb1724558b08b7430117cd2f3ca0e61b2

Contents?: true

Size: 199 Bytes

Versions: 3

Compression:

Stored size: 199 Bytes

Contents

module ColorConversion
  class NullConverter < ColorConverter

    def self.matches?(color)
      true
    end

    private
    
    def to_rgba(color)
      raise InvalidColorError
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
color_conversion-0.1.2 lib/color_conversion/converters/null_converter.rb
color_conversion-0.1.1 lib/color_conversion/converters/null_converter.rb
color_conversion-0.1.0 lib/color_conversion/converters/null_converter.rb