Sha256: 8879e39d3e88753222985697ee78a42e88c2e8fa6767402bf37bf80aadca29f1

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

module DevSuite
  module Utils
    module Color
      module Palette
        require_relative "palette/base"
        require_relative "palette/default"

        class << self
          def create(type)
            case type
            when :default
              Default.new
            else
              raise ArgumentError, "Unknown palette type: #{type}"
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dev_suite-0.2.5 lib/dev_suite/utils/color/palette.rb
dev_suite-0.2.4 lib/dev_suite/utils/color/palette.rb
dev_suite-0.2.3 lib/dev_suite/utils/color/palette.rb
dev_suite-0.2.2 lib/dev_suite/utils/color/palette.rb
dev_suite-0.2.1 lib/dev_suite/utils/color/palette.rb
dev_suite-0.2.0 lib/dev_suite/utils/color/palette.rb
dev_suite-0.1.3 lib/dev_suite/utils/color/palette.rb