Sha256: 04c1f9b28ad53cb25d095e5fd6d3554b3cee2b3a857e2a43a595968bfc94fc32

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

# rubocop:disable Lint/MissingSuper
module Phlex
  module Heroicons
    class Base < Phlex::SVG
      attr_reader :variant, :classes

      def initialize(variant: Phlex::Heroicons.configuration.default_variant, classes: Phlex::Heroicons.configuration.default_class)
        @variant = variant
        @classes = classes
      end

      def template
        send(variant) if respond_to?(variant)
      end
    end
  end
end
# rubocop:enable Lint/MissingSuper

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phlex-heroicons-1.1.0 lib/phlex/heroicons/base.rb