Sha256: 7310860ff775bfcb9990f2f07821c172bd84c607f5ccc6374ef03c3bdaa4b5b3

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module TNS
  module Color
    # Base color class
    class Base
      def to_css
        raise NotImplementedError
      end

      def to_s
        raise NotImplementedError
      end

      def ==(other)
        other.class == self.class && other.state == state
      end

      def state
        instance_variables.map { |variable| instance_variable_get variable }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tints-n-shades-0.1.0 lib/tns/color/base.rb