Sha256: d184a94e2c715dcf041b2cccb1067502427cc36dff21d823686cd2f6d8a5b314

Contents?: true

Size: 261 Bytes

Versions: 3

Compression:

Stored size: 261 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
baza-0.0.2 lib/baza.rb
baza-0.0.1 lib/baza.rb
baza-0.0.0 lib/baza.rb