class Object

Public Instance Methods

require_all(path) click to toggle source

Require all of the Ruby files in the given directory.

# File lib/shuang_pin_tutorial.rb, line 7
def require_all(path)
  glob = File.join(__dir__, path, "*.rb")
  Dir[glob].sort.each do |f|
    require f
  end
end