Class: ENIGMA::Messages
- Inherits:
-
Object
- Object
- ENIGMA::Messages
- Defined in:
- lib/enigma/messages.rb
Class Method Summary collapse
Instance Method Summary collapse
- #argument_error ⇒ Object
- #file_not_present ⇒ Object
- #file_type_error ⇒ Object
- #overwrite_file ⇒ Object
Class Method Details
.success_message(file_name, key, date) ⇒ Object
19 20 21 |
# File 'lib/enigma/messages.rb', line 19 def self.(file_name, key, date) "created #{file_name} with key #{key} and date #{date}" end |
Instance Method Details
#argument_error ⇒ Object
3 4 5 |
# File 'lib/enigma/messages.rb', line 3 def argument_error "Please enter the correct number of argument" end |
#file_not_present ⇒ Object
11 12 13 |
# File 'lib/enigma/messages.rb', line 11 def file_not_present "The file you are looking for does not exit" end |
#file_type_error ⇒ Object
7 8 9 |
# File 'lib/enigma/messages.rb', line 7 def file_type_error "This enigma machine only works with .txt files e.g master.txt" end |
#overwrite_file ⇒ Object
15 16 17 |
# File 'lib/enigma/messages.rb', line 15 def overwrite_file "The file exist would u like to over write it" end |