Skip to content

Commit 97afb76

Browse files
author
Katrina Owen
committed
Add default introductory code example
Instead of having logic for a fallback in the backend, we're choosing a default for the snippet file. For tracks that have core exercises, we pick the first core exercise. For tracks without these, we pick the first exercise listed in the config.
1 parent 23ef5fd commit 97afb76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/SNIPPET.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class HelloWorld
2+
def self.hello(name = 'World')
3+
"Hello, #{name}!"
4+
end
5+
end

0 commit comments

Comments
 (0)