Sha256: 5e3c32184e09ca3e40d764fc395e470a6a566b0de2ceac15676129df2468d725
Contents?: true
Size: 349 Bytes
Versions: 3
Compression:
Stored size: 349 Bytes
Contents
module Hypertemplate class Recipes def initialize @recipes = {} end def add(recipe_name, &block) @recipes[recipe_name] = block end def remove(recipe_name) @recipes.delete(recipe_name) end def [](recipe_name) @recipes[recipe_name] end def list @recipes.keys end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hypertemplate-1.2.2 | lib/hypertemplate/recipes.rb |
hypertemplate-1.2.1 | lib/hypertemplate/recipes.rb |
hypertemplate-1.2.0 | lib/hypertemplate/recipes.rb |