Class: Class

Inherits:
Object
  • Object
show all
Defined in:
lib/carray/base/autoload.rb

Instance Method Summary collapse

Instance Method Details

#autoload_method(method, library) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/carray/base/autoload.rb', line 23

def autoload_method (method, library)
  class_eval %{
    def #{method} (*argv, &block)
      require "#{library}"
      #{method}(*argv, &block)
    end
  }
end