Method: Fable::Container#add_contents_of_container

Defined in:
lib/fable/container.rb

#add_contents_of_container(other_container) ⇒ Object



54
55
56
57
58
59
60
# File 'lib/fable/container.rb', line 54

def add_contents_of_container(other_container)
  content += other_container.content
  other_container.content.each do |content_to_add|
    content_to_add.parent = self
    try_adding_to_named_content(content_to_add)
  end
end