Last active
December 12, 2015 07:49
-
-
Save cieux1/4739552 to your computer and use it in GitHub Desktop.
パンの焼き方
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'oven' | |
| require 'big_bowl' | |
| class Bread | |
| def initialize | |
| first_ingredients = { | |
| 'Warm Water' => '220 ml', # add 5% more if half_milk | |
| 'flour' => '300 g' | |
| 'Yeast' => '6 g', | |
| 'Salt' => '6 g', | |
| 'Sugar' => '15 g', | |
| } | |
| second_ingredients = { | |
| 'Melted Butter' => '30 g' # なくてもいいけど。 | |
| } | |
| optional_ingredients = { | |
| 'chest_nuts' => '30 g', # tekito- | |
| 'raison' => '20 g' # tekito- | |
| } | |
| 10.minutes.knead(first_ingredients) | |
| 5.minutes.knead(second_ingredients) | |
| 3.minutes.knead(optional_ingredients) | |
| wait until daugh_gets_double_sized | |
| flatten # ガス抜き(押しつぶす) | |
| devide_into_pieces if you_want_to # 小分けにする、したければ。 | |
| put_it_into_container if you_have # 容器に入れる、あれば。 | |
| wait until daugh_gets_double_sized # 2回目の発酵。 | |
| pre_heat_oven until 200C # オーブン暖める | |
| 20..23.minutes.bake | |
| end | |
| def knead | |
| # こねる | |
| end | |
| def daugh_gets_double_sized | |
| # 生地が2倍くらいになればOK。1.5倍くらいでもOKかも。 | |
| # 30..60 minutes.... 水や生地や部屋の温度で変わる | |
| end | |
| def wait | |
| # wash your hands and write some codes! | |
| end | |
| def bake | |
| # もし上の方が焦げてきたら止める | |
| end | |
| end | |
| bread = Bread.new |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
全部initializeでやっちゃっていいのだろうか。。。