Sha256: 6a84127f7974e08bd2dc25e78fb16d681eb5fe739673bff7277964cbc656b250
Contents?: true
Size: 479 Bytes
Versions: 16
Compression:
Stored size: 479 Bytes
Contents
# frozen_string_literal: true module Phlex module Icons module Flag class Base < Icons::Base attr_reader :variant def initialize(variant: Phlex::Icons::Flag.configuration.default_variant, **attrs) @variant = variant if attrs super(**attrs) else super() end end def view_template send(variant) if respond_to?(variant) end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems