Module: VTools::SharedMethods::Static

Includes:
Common
Defined in:
lib/vtools/shared_methods.rb

Overview

class bindings

Instance Method Summary collapse

Methods included from Common

#config, #fix_encoding, #generate_path, #hash_to_obj, #json_to_obj, #keys_to_sym, #log, #logger=, #network_call, #parse_json, #path_generator

Instance Method Details

#load_libsObject

load external libs



118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/vtools/shared_methods.rb', line 118

def load_libs
  CONFIG[:library].each do |lib|
    begin
      require lib
    rescue LoadError => e
      print "Library file could not be found (#{lib})\n"
    rescue SyntaxError => e
      print "Library may contain non ascii characters (#{lib}).\n\n" +
        "Try to set file encoding to 'binary'.\n\n"
    end
  end
end