class ExceptionHandler

Public Class Methods

new(context, builder) click to toggle source
# File template.rb, line 1199
def initialize context, builder
  @context = context
  @builder = builder
end

Public Instance Methods

section(attrs = {}, &contents) click to toggle source
# File template.rb, line 1204
def section(attrs = {}, &contents)
  org = get_attribute attrs, :org
  exception = get_attribute attrs, :exception

  @builder.beginSection org, exception
  @context.instance_eval &contents
  @builder.endSection
end