class Whowas::RecipeGenerator
Public Instance Methods
create()
click to toggle source
# File lib/generators/whowas/recipe_generator.rb, line 5 def create copy_file "recipe.rb", "app/whowas/recipes/#{file_name}.rb" end
rename_method()
click to toggle source
# File lib/generators/whowas/recipe_generator.rb, line 9 def rename_method gsub_file "app/whowas/recipes/#{file_name}.rb", /name_this_recipe/, name.underscore end