Class: IB::Contract
- Inherits:
-
Object
- Object
- IB::Contract
- Defined in:
- lib/ib/symbols/abstract.rb
Overview
reopen the contract-class and add yml_file
Instance Method Summary collapse
-
#yml_file ⇒ Object
Reading Contract-Defaults.
Instance Method Details
#yml_file ⇒ Object
Reading Contract-Defaults
by default, the yml-file in the base-directory (ib-ruby) is used. This method can be overloaded to include a file from a different location
IB::Symbols::Stocks.wfc.yml_file
=> "/home/ubuntu/workspace/ib-ruby/contract_config.yml"
14 15 16 |
# File 'lib/ib/symbols/abstract.rb', line 14 def yml_file File.('../../../../contract_config.yml',__FILE__ ) end |