lib/merb/mixins/erubis_capture_mixin.rb in merb-0.3.4 vs lib/merb/mixins/erubis_capture_mixin.rb in merb-0.3.7

- old
+ new

@@ -39,17 +39,10 @@ # # <%= catch_content :header %> def throw_content(name, content = nil, &block) eval "@_#{name}_content = (@_#{name}_content || '') + capture(&block)" end - - # catch_content catches the thrown content from another template - # So when you throw_content(:foo) {...} you can catch_content :foo - # in another view or the layout. - def catch_content(name) - instance_variable_get("@_#{name}_content") - end - + private def capture_block(*args, &block) block.call(*args) end \ No newline at end of file