module AutoloadPatch
Since `autoload` will most likely be deprecated (due to multi-threading concerns), we'll use `const_missing`. See: www.ruby-forum.com/topic/3036681 for more info.
Public Instance Methods
const_missing(name)
click to toggle source
# File lib/nmatrix/monkeys.rb, line 133 def const_missing(name) file = name.to_s.underscore require "nmatrix/io/#{file}" klass = const_get(name) return klass if klass end