Top Level Namespace

Defined Under Namespace

Modules: Zabbirc Classes: StopError

Instance Method Summary collapse

Instance Method Details

#require_dir(dir) ⇒ Object



7
8
9
10
11
12
# File 'lib/zabbirc.rb', line 7

def require_dir dir
  base_dir = Pathname.new(File.expand_path(File.dirname(__FILE__)))
  Dir.glob(base_dir.join(dir)).each do |f|
    require f
  end
end