Class: Playmo::Generators::Recipes::SampleRecipe
- Inherits:
-
Recipe
- Object
- Rails::Generators::Base
- Recipe
- Playmo::Generators::Recipes::SampleRecipe
- Defined in:
- lib/playmo/recipes/_/sample_recipe.rb
Instance Attribute Summary
Attributes inherited from Recipe
#application_name, #question_instance, #silents
Instance Method Summary collapse
- #do_something_for_doc ⇒ Object
-
#initialize ⇒ SampleRecipe
constructor
Cook the recipe TODO: Add rspec tests TODO: Recipe with more than one question TODO: You can create own gem and redefine Playmo behavior by removing or adding recipes TODO: Create a web service built on top of Playmo to prepare new app and putting it to Github or download in archive TODO: A playmo bin file that generate rails app and do all the stuff as altennative to manually installing rails app and include playmo into this app TODO: Require playmo to the app only when in development mode TODO: Copy Playmo view heplers into the app.
Methods inherited from Recipe
#cook!, #question, #retrieve, #silently, #store
Constructor Details
#initialize ⇒ SampleRecipe
Cook the recipe TODO: Add rspec tests TODO: Recipe with more than one question TODO: You can create own gem and redefine Playmo behavior by removing or adding recipes TODO: Create a web service built on top of Playmo to prepare new app and putting it to Github or download in archive TODO: A playmo bin file that generate rails app and do all the stuff as altennative to manually installing rails app and include playmo into this app TODO: Require playmo to the app only when in development mode TODO: Copy Playmo view heplers into the app
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/playmo/recipes/_/sample_recipe.rb', line 14 def initialize silently do # do something without any questions end question "What's up Docz?" => :do_something_for_doc def do_something_for_doc # do something for Doc end question "What's up Docx?" do answer "So-so" => :so_so answer "Nice!" => :nice end question "What's up Docy?" do answer "So-so" do # do something end answer "Nice!" do # do something end end end |
Instance Method Details
#do_something_for_doc ⇒ Object
21 22 23 |
# File 'lib/playmo/recipes/_/sample_recipe.rb', line 21 def do_something_for_doc # do something for Doc end |