Method: Herdic::Client#initialize
- Defined in:
- lib/herdic/client.rb
#initialize(file, options) ⇒ Client
Returns a new instance of Client.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/herdic/client.rb', line 17 def initialize(file, ) @file, = file, @context = binding @config_file = ['c'] || Util.find_files_upward(Herdic.config_filename, Herdic.pwd, 1)[0] load_config @config_file if @config_file @printer = Printer.new @printer. @config_file @store = Store.new @config_file @registry = @store.data = (@registry[:_cookie] ||= {}) end |