class Voom::Presenters::DSL::Components::Badge
Attributes
badge[RW]
icon[RW]
text[RW]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
# File lib/voom/presenters/dsl/components/badge.rb, line 8 def initialize(**attribs_, &block) super(type: :badge, **attribs_, &block) @badge = attribs.delete(:badge) @icon = attribs.delete(:icon) @text = attribs.delete(:text) expand! end