Method: Rozi#require_lib

Defined in:
lib/rozi.rb

#require_libObject

Loads all ruby files under lib/rozi. Called automatically when requiring “rozi.rb”.



13
14
15
16
17
18
19
20
# File 'lib/rozi.rb', line 13

def require_lib
  this_dir = File.absolute_path(File.dirname(__FILE__))
  source_files = Dir[File.join(this_dir, "rozi/**/*.rb")]

  source_files.each { |file|
    require_relative file
  }
end