Module: Pfm::Validator::TemplateHelper

Defined in:
lib/iapi-idlc-sdk-pfm/validator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.delegate_to_app_context(name) ⇒ Object



41
42
43
44
45
# File 'lib/iapi-idlc-sdk-pfm/validator.rb', line 41

def self.delegate_to_app_context(name)
  define_method(name) do
    Pfm::Validator.context.public_send(name)
  end
end

Instance Method Details

#yearObject



47
48
49
# File 'lib/iapi-idlc-sdk-pfm/validator.rb', line 47

def year
  Time.now.year
end