| Class | TaskJuggler::Account |
| In: |
lib/taskjuggler/Account.rb
|
| Parent: | PropertyTreeNode |
# File lib/taskjuggler/Account.rb, line 24 def initialize(project, id, name, parent) super(project.accounts, id, name, parent) project.addAccount(self) @data = Array.new(@project.scenarioCount, nil) @project.scenarioCount.times do |i| AccountScenario.new(self, i, @scenarioAttributes[i]) end end
Many Account functions are scenario specific. These functions are provided by the class AccountScenario. In case we can‘t find a function called for the Account class we try to find it in AccountScenario.
# File lib/taskjuggler/Account.rb, line 38 def method_missing(func, scenarioIdx, *args) @data[scenarioIdx].method(func).call(*args) end