Method: Tpool.const_missing

Defined in:
lib/tpool.rb

.const_missing(name) ⇒ Object



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

def self.const_missing(name)
  require "#{File.dirname(__FILE__)}/tpool_#{name.to_s.downcase}.rb"
  raise "Still not defined: '#{name}'." if !Tpool.const_defined?(name)
  return Tpool.const_get(name)
end