Module: L

Defined in:
lib/rub/l.rb

Overview

Library Module

Loaded libraries become available here.

Defined Under Namespace

Modules: C, LD, Template, Test, Util

Class Method Summary collapse

Class Method Details

.const_missing(n) ⇒ Object

Auto-load libraries.



32
33
34
35
36
37
38
39
# File 'lib/rub/l.rb', line 32

def self.const_missing(n)
	#pp n
	p = "l/#{n.to_s.downcase}"
	
	require_relative p
	const_defined?(n, false) or raise "Library #{p} malformed, was expected to load into L::#{n}."
	const_get(n, false)
end