Module: Voom::Presenters::DSL::Components::Mixins::Chips

Includes:
Append
Included in:
Chipset
Defined in:
lib/voom/presenters/dsl/components/mixins/chips.rb

Instance Method Summary collapse

Methods included from Append

#<<, #yield_to

Instance Method Details

#chip(text = nil, **attribs, &block) ⇒ Object



9
10
11
12
# File 'lib/voom/presenters/dsl/components/mixins/chips.rb', line 9

def chip(text= nil, **attribs, &block)
  self << Components::Chip.new(parent: self, text: text,
                                     **attribs, &block)
end