diff --git a/koans/edgecase.rb b/koans/edgecase.rb index 80116aa..96617f9 100644 --- a/koans/edgecase.rb +++ b/koans/edgecase.rb @@ -110,6 +110,8 @@ module EdgeCase File.open(PROGRESS_FILE_NAME,'r') do |f| @_contents = f.read.to_s.gsub(/\s/,'').split(',') end + else + @_contents = [] end end @_contents diff --git a/src/edgecase.rb b/src/edgecase.rb index 9d31ea6..96617f9 100644 --- a/src/edgecase.rb +++ b/src/edgecase.rb @@ -110,6 +110,8 @@ module EdgeCase File.open(PROGRESS_FILE_NAME,'r') do |f| @_contents = f.read.to_s.gsub(/\s/,'').split(',') end + else + @_contents = [] end end @_contents @@ -169,39 +171,39 @@ module EdgeCase def end_screen completed = <<-ENDTEXT - ,, , ,, - : ::::, :::, - , ,,: :::::::::::::,, :::: : , - , ,,, ,:::::::::::::::::::, ,: ,: ,, - :, ::, , , :, ,:::::::::::::::::::, ::: ,:::: - : : ::, ,:::::::: ::, ,:::: - , ,::::: :,:::::::,::::, - ,: , ,:,,: ::::::::::::: - ::,: ,,:::, ,::::::::::::, - ,:::, :,,::: ::::::::::::, - ,::: :::::::, Mountains are again merely mountains ,:::::::::::: - :::,,,:::::: :::::::::::: - ,:::::::::::, ::::::::::::, - :::::::::::, ,:::::::::::: - ::::::::::::: ,:::::::::::: -,:::::::::::: Ruby Koans ::::::::::::, -::::::::::::: ,::::::::::::, -,:::::::::::, , :::::::::::: - ,:::::::::::::, brought to you by ,,::::::::::::, - :::::::::::::: ,:::::::::::: - ::::::::::::::, ::::::::::::: - ::::::::::::, EdgeCase Software Artisans , :::::::::::: - :,::::::::: :::: ::::::::::::: - ,::::::::::: ,: ,,:::::::::::::, - :::::::::::: ,::::::::::::::, - :::::::::::::::::, :::::::::::::::: - :::::::::::::::::::, :::::::::::::::: - ::::::::::::::::::::::, ,::::,:, , ::::,::: - :::::::::::::::::::::::, ::,: ::,::, ,,: :::: - ,:::::::::::::::::::: ::,, , ,, ,:::: - ,:::::::::::::::: ::,, , ,:::, - ,:::: , ,, - ,,, + ,, , ,, + : ::::, :::, + , ,,: :::::::::::::,, :::: : , + , ,,, ,:::::::::::::::::::, ,: ,: ,, + :, ::, , , :, ,::::::::::::::::::, ::: ,:::: + : : ::, ,:::::::: ::, ,:::: + , ,::::: :,:::::::,::::, + ,: , ,:,,: ::::::::::::: + ::,: ,,:::, ,::::::::::::, + ,:::, :,,::: ::::::::::::, + ,::: :::::::, Mountains are again merely mountains ,:::::::::::: + :::,,,:::::: :::::::::::: + ,:::::::::::, ::::::::::::, + :::::::::::, ,:::::::::::: +::::::::::::: ,:::::::::::: +:::::::::::: Ruby Koans ::::::::::::, +:::::::::::: ,::::::::::::, +:::::::::::, , :::::::::::: +,:::::::::::::, brought to you by ,,::::::::::::, +:::::::::::::: ,:::::::::::: + ::::::::::::::, ,::::::::::::: + ::::::::::::, EdgeCase Software Artisans , :::::::::::: + :,::::::::: :::: ::::::::::::: + ,::::::::::: ,: ,,:::::::::::::, + :::::::::::: ,::::::::::::::, + :::::::::::::::::, :::::::::::::::: + :::::::::::::::::::, :::::::::::::::: + ::::::::::::::::::::::, ,::::,:, , ::::,::: + :::::::::::::::::::::::, ::,: ::,::, ,,: :::: + ,:::::::::::::::::::: ::,, , ,, ,:::: + ,:::::::::::::::: ::,, , ,:::, + ,:::: , ,, + ,,, ENDTEXT puts completed end