Last active
November 23, 2016 13:00
-
-
Save maicher/eec6436a5e171e91108304736f943642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CliSpinnable.with_spinner do |cli| | |
cli.print('Text') #=> / Text | |
cli.tick #=> ✓ Text | |
cli.fail #=> × Text | |
1 / 0 #=> × Text # exceptions raised within the block also triggers printing fail mark | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment