Sha256: 683bb413c137c04bc347b6fd601315082684e3ab493a349460a462685565b90f

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

#	This file is part of the "Utopia Framework" project, and is licensed under the GNU AGPLv3.
#	Copyright 2010 Samuel Williams. All rights reserved.
#	See <utopia.rb> for licensing details.

module Utopia
	module Tags
		@@all = {}
		
		def self.register(name, tag)
			@@all[name] = tag
		end
		
		def self.create(name, &block)
			@@all[name] = block
		end
		
		def self.all
			@@all
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
utopia-0.9.58 lib/utopia/tags.rb
utopia-0.9.57 lib/utopia/tags.rb