Module: VTools::SharedMethods::Static
- Includes:
- Common
- Defined in:
- lib/vtools/shared_methods.rb
Overview
class bindings
Instance Method Summary collapse
-
#load_libs ⇒ Object
load external libs.
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_libs ⇒ Object
load external libs
125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/vtools/shared_methods.rb', line 125 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 |