Skip to content

Commit 810be5b

Browse files
authored
Merge pull request #24 from fastruby/doc/template
Add an example for puzzle suggestions
2 parents 72ce4c5 + 6b020c7 commit 810be5b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

PUZZLE_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# TEMPLATE
2+
3+
This shows what a good description looks like when suggesting a puzzle.
4+
5+
## Example: Multi-line Snippet
6+
7+
In this snippet:
8+
9+
```
10+
Time.current.strftime("%Y-%m-%dT%H:%M:%S%z")
11+
```
12+
13+
Is the `current` method a Ruby or Rails method?
14+
15+
## Example: Single Sentence Snippet
16+
17+
When you have a line like this `hash = { a: 1, b: 2, c: 3 }` and later you call this method `hash.transform_keys(&:to_s)` -- is `transform_keys` a Ruby or Rails method?

0 commit comments

Comments
 (0)