# File lib/mab/builder.rb, line 5 def initialize(assigns = {}, helper = nil, &blk) @_helper = helper @_result = [] assigns.each do |key, value| instance_variable_set(:"@#{key}", value) end if helper helper.instance_variables.each do |var| instance_variable_set(var, helper.instance_variable_get(var)) end end capture(&blk) if blk end
# File lib/mab/builder.rb, line 22 def capture(&blk) @_result << mab(&blk) end
Generated with the Darkfish Rdoc Generator 2.