Module: Voom::Presenters::DSL::Components::Mixins::Append

Included in:
Form, List, Chips, Common, Toggles, Typography
Defined in:
lib/voom/presenters/dsl/components/mixins/append.rb

Instance Method Summary collapse

Instance Method Details

#<<(comp) ⇒ Object



8
9
10
# File 'lib/voom/presenters/dsl/components/mixins/append.rb', line 8

def <<(comp)
  @components << comp
end

#yield_to(&block) ⇒ Object



12
13
14
# File 'lib/voom/presenters/dsl/components/mixins/append.rb', line 12

def yield_to(&block)
  instance_eval(&block) if block
end