Sha256: 02f048c72453943c74a7b1b7eec0c0b95715a190572d388dfbc2abd2e2a2c445
Contents?: true
Size: 314 Bytes
Versions: 11
Compression:
Stored size: 314 Bytes
Contents
class Baza #Autoloader for subclasses. def self.const_missing(name) file_name = name.to_s.gsub(/(.)([A-Z])/,'\1_\2').downcase require "#{File.dirname(__FILE__)}/../include/#{file_name}.rb" raise "Still not defined: '#{name}'." if !Baza.const_defined?(name) return Baza.const_get(name) end end
Version data entries
11 entries across 11 versions & 1 rubygems