Extract prefix constant for koans

This commit is contained in:
Uku Taht
2015-12-17 01:57:49 +00:00
parent 34cb474569
commit 5dec471422
3 changed files with 9 additions and 3 deletions

View File

@@ -50,6 +50,6 @@ defmodule Runner do
end
defp koan?(fun_name) do
String.starts_with?(to_string(fun_name), "koan: ")
String.starts_with?(to_string(fun_name), Koans.prefix)
end
end