Top Level Namespace

Defined Under Namespace

Modules: Spty

Instance Method Summary collapse

Instance Method Details

#require_all(path) ⇒ Object



5
6
7
8
9
10
# File 'lib/spty.rb', line 5

def require_all(path)
  glob = File.join(File.dirname(__FILE__), path, "*.rb")
  Dir[glob].sort.each do |file|
    require file
  end
end