Module: Pfm::Validator
- Defined in:
- lib/idlc-sdk-pfm/validator.rb
Defined Under Namespace
Modules: TemplateHelper Classes: Context
Class Method Summary collapse
Class Method Details
.add_attr_to_context(name, value = nil) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/idlc-sdk-pfm/validator.rb', line 33 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 |
.context ⇒ Object
29 30 31 |
# File 'lib/idlc-sdk-pfm/validator.rb', line 29 def self.context @context ||= Context.new end |
.reset ⇒ Object
25 26 27 |
# File 'lib/idlc-sdk-pfm/validator.rb', line 25 def self.reset @context = nil end |