require 'tagz' include Tagz.globally c = Class.new{ include Tagz.globally def a() tagz{ a_{ b(tagz); nil } } end def b(doc) tagz(doc){ b_{ 'content' } } end }.new puts c.a