Sha256: 10e04bdcaf76f570aa18d7b321768c02ac3f7b31440dddeb6b7f40914d662e1e

Contents?: true

Size: 481 Bytes

Versions: 14

Compression:

Stored size: 481 Bytes

Contents

require_relative 'mixins/event'

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

14 entries across 14 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.6 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.5 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.4 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.3 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.2 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.1 lib/voom/presenters/dsl/components/badge.rb
voom-presenters-0.1.0 lib/voom/presenters/dsl/components/badge.rb