Class: EvernoteLinkExtractor::Helper
- Inherits:
-
Object
- Object
- EvernoteLinkExtractor::Helper
- Defined in:
- lib/evernote_link_extractor/helper.rb
Overview
some helper methods
Class Method Summary collapse
-
.close ⇒ Object
close the program.
-
.exit? ⇒ Boolean
exit the whole program?.
Class Method Details
.close ⇒ Object
close the program
13 14 15 16 |
# File 'lib/evernote_link_extractor/helper.rb', line 13 def close puts 'Closing. Have a nice day.' exit(0) end |
.exit? ⇒ Boolean
exit the whole program?
7 8 9 10 |
# File 'lib/evernote_link_extractor/helper.rb', line 7 def exit? print 'Exit? (yes|no): ' close if gets.chomp == 'yes' end |