Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Financing::FINANCINGS.each do |method|
- define_method method do
- if current_period && current_period != :nil
- instance_variable_defined?("@#{method}") ? nil : instance_variable_set("@#{method}", Hash.new)
- instance_variable_get("@#{method}")[current_period.id] ||= current_period.send(method)
- else
- 0.0
- end
- end
- end
Add Comment
Please, Sign In to add comment