Sha256: 77785040617fdfaeb42f923c74bd65f379f581ce136aa404421451b3670ce3f7

Contents?: true

Size: 448 Bytes

Versions: 6

Compression:

Stored size: 448 Bytes

Contents

module Voom
  module Presenters
    module DSL
      module Components
        class Badge < EventBase
          attr_accessor :badge, :icon, :text

          def initialize(**attribs_, &block)
            super(type: :badge, **attribs_, &block)
            @badge = attribs.delete(:badge)
            @icon = attribs.delete(:icon)
            @text = attribs.delete(:text)
            expand!
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/badge.rb