module Pfm::Validator

def self.add_attr_to_context(name, value = nil)

def self.add_attr_to_context(name, value = nil)
  sym_name = name.to_sym
  Pfm::Validator::Context.add_attr(sym_name)
  Pfm::Validator::TemplateHelper.delegate_to_app_context(sym_name)
  context.public_send("#{sym_name}=", value)
end

def self.context

def self.context
  @context ||= Context.new
end

def self.reset

def self.reset
  @context = nil
end