Class: IB::Contract

Inherits:
Object
  • Object
show all
Defined in:
lib/ib/symbols/abstract.rb

Overview

reopen the contract-class and add yml_file

Instance Method Summary collapse

Instance Method Details

#yml_fileObject

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.expand_path('../../../../contract_config.yml',__FILE__ )
end