Class: Class

Inherits:
Object show all
Defined in:
lib/quick/fs.rb,
lib/quick/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#define(constants) ⇒ Object



7
8
9
10
11
# File 'lib/quick/fs.rb', line 7

def define(constants)
	constants.each do |name, val|
		define_method(name) {|*args| val}
	end
end

#quick_instanceObject



24
25
26
# File 'lib/quick/core_ext.rb', line 24

def quick_instance
	@quick_instance ||= allocate
end