Module: Pfm::Generator::TemplateHelper

Defined in:
lib/iapi-idlc-sdk-pfm/generator.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/generator.rb', line 41

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

Instance Method Details

#yearObject



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

def year
  Time.now.year
end