Sha256: 0f15ef5b8a6735f11687576992fbc86f191193946822e5a0ad922b4c6eb5f943

Contents?: true

Size: 342 Bytes

Versions: 72

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module Phlex
  module Icons
    class Base < Phlex::SVG
      attr_reader :classes

      def initialize(classes: Phlex::Icons.configuration.default_classes)
        @classes = classes

        super()
      end

      def view_template
        send(variant) if respond_to?(variant)
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 8 rubygems

Version Path
phlex-icons-tabler-0.17.0 lib/phlex/icons/base.rb
phlex-icons-bootstrap-0.17.0 lib/phlex/icons/base.rb
phlex-icons-flag-0.17.0 lib/phlex/icons/base.rb
phlex-icons-remix-0.17.0 lib/phlex/icons/base.rb
phlex-icons-0.17.0 lib/phlex/icons/base.rb
phlex-icons-hero-0.17.0 lib/phlex/icons/base.rb
phlex-icons-radix-0.17.0 lib/phlex/icons/base.rb
phlex-icons-lucide-0.17.0 lib/phlex/icons/base.rb
phlex-icons-flag-0.16.0 lib/phlex/icons/base.rb
phlex-icons-bootstrap-0.16.0 lib/phlex/icons/base.rb
phlex-icons-tabler-0.16.0 lib/phlex/icons/base.rb
phlex-icons-lucide-0.16.0 lib/phlex/icons/base.rb
phlex-icons-0.16.0 lib/phlex/icons/base.rb
phlex-icons-remix-0.16.0 lib/phlex/icons/base.rb
phlex-icons-hero-0.16.0 lib/phlex/icons/base.rb
phlex-icons-radix-0.16.0 lib/phlex/icons/base.rb
phlex-icons-tabler-0.15.0 lib/phlex/icons/base.rb
phlex-icons-flag-0.15.0 lib/phlex/icons/base.rb
phlex-icons-0.15.0 lib/phlex/icons/base.rb
phlex-icons-bootstrap-0.15.0 lib/phlex/icons/base.rb