{"author_url":"https://blog.hatena.ne.jp/totora0155/","blog_url":"https://totora0155.hatenablog.jp/","published":"2013-12-22 05:22:56","provider_name":"Hatena Blog","author_name":"totora0155","categories":["Ruby"],"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotora0155.hatenablog.jp%2Fentry%2F2013%2F12%2F22%2F052256\" title=\"Rake\u306e\u5f15\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u3042\u305f\u308a - Milk+ea\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","title":"Rake\u306e\u5f15\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u3042\u305f\u308a","image_url":null,"width":"100%","description":"\u5f15\u6570\u6307\u5b9a\u3067\u3002 task :task1, [:arg1, :arg2] do |t, args| args.with_defaults(arg1: 'foo', arg2: 'bar') p args['arg1'] p args['arg2'] end # rake task1[\"foo\",\"bar\"] #> \"foo\" #> \"bar\" # rake task #> \"foo\" #> \"bar\" #with_defaults\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 \u74b0\u5883\u5909\u6570\u3067\u3002 task :pre do p \"pre:#{ENV['arg1']}\" p \"pre:#{ENV['arg2']}\" end \u2026","type":"rich","blog_title":"Milk+ea","url":"https://totora0155.hatenablog.jp/entry/2013/12/22/052256","height":"190"}