Module: Visionbundles::Helpers::Recipes
- Defined in:
- lib/visionbundles/helpers/recipes.rb
Instance Method Summary collapse
Instance Method Details
#include_recipes(*recipes) ⇒ Object
4 5 6 7 8 |
# File 'lib/visionbundles/helpers/recipes.rb', line 4 def include_recipes(*recipes) recipes.each do |recipe| require "visionbundles/recipes/#{recipe}.rb" end end |
#set_default(name, *args, &block) ⇒ Object
10 11 12 |
# File 'lib/visionbundles/helpers/recipes.rb', line 10 def set_default(name, *args, &block) set(name, *args, &block) unless exists?(name) end |