Class: KittyGen::Cook
- Inherits:
-
Object
- Object
- KittyGen::Cook
- Defined in:
- lib/kitty_gen/cook.rb
Instance Attribute Summary collapse
-
#generator ⇒ Object
readonly
Returns the value of attribute generator.
Instance Method Summary collapse
- #cook(template) ⇒ Object
-
#initialize ⇒ Cook
constructor
A new instance of Cook.
Constructor Details
Instance Attribute Details
#generator ⇒ Object (readonly)
Returns the value of attribute generator.
4 5 6 |
# File 'lib/kitty_gen/cook.rb', line 4 def generator @generator end |
Instance Method Details
#cook(template) ⇒ Object
11 12 13 |
# File 'lib/kitty_gen/cook.rb', line 11 def cook(template) generator.recipe template end |