Module: Kernel

Defined in:
lib/sym/extensions/stdlib.rb

Instance Method Summary collapse

Instance Method Details

#require_dir(___dir) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/sym/extensions/stdlib.rb', line 2

def require_dir(___dir)
  @___dir ||= File.dirname(__FILE__)
  # require files using a consistent order based on the dir/file name.
  # this should be OS-neutral
  Dir["#{@___dir}/#{___dir}/*.rb"].sort.each do |___file|
    require(___file)
  end
end