class Pfm::Validator::Context
This is here to hold attr_accessor data for Validator context variables
def self.add_attr(name)
def self.add_attr(name) @attributes ||= [] unless @attributes.include?(name) @attributes << name attr_accessor(name) end end
def self.reset
def self.reset return if @attributes.nil? @attributes.each do |attr| remove_method(attr) end @attributes = nil end