提交 79477417 编写于 作者: Y Yoshiyuki Hirano

Fix example codes for generators guide [ci skip]

上级 36452632
...@@ -627,7 +627,7 @@ This method also takes a block: ...@@ -627,7 +627,7 @@ This method also takes a block:
```ruby ```ruby
lib "super_special.rb" do lib "super_special.rb" do
puts "Super special!" "puts 'Super special!'"
end end
``` ```
...@@ -636,7 +636,7 @@ end ...@@ -636,7 +636,7 @@ end
Creates a Rake file in the `lib/tasks` directory of the application. Creates a Rake file in the `lib/tasks` directory of the application.
```ruby ```ruby
rakefile "test.rake", "hello there" rakefile "test.rake", 'task(:hello) { puts "Hello, there" }'
``` ```
This method also takes a block: This method also takes a block:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册