Sha256: c0eb259cdbc3083d2375b573f95ccf17f2330f0821657a465d83b68cd1477e4e
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
require "string-cases" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.15 | lib/baza.rb |
baza-0.0.14 | lib/baza.rb |