Sha256: 4aaa8eee440eca2ae05d5d80c3dd0b8eb5ad319b56dca37ce4c752f1977b04bb

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

module TNS
  module Output
    def from_argument(arg, name)
      case arg
      when "css"
        CSS.new(name)
      when "sass"
        SASS.new(name)
      when "tailwind"
        Tailwind.new(name)
      else
        raise ArgumentError, "Invalid output #{arg}."
      end
    end
    module_function :from_argument
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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