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

Included in:
FileInput, Form, List, Chips, Chipset, Common, Toggles, Typography, PageTitle
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(*args, &block) ⇒ Object



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

def yield_to(*args, &block)
  instance_exec(*args, &block) if block_given?
end