Class: ENIGMA::Messages

Inherits:
Object
  • Object
show all
Defined in:
lib/enigma/messages.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.success_message(file_name, key, date) ⇒ Object



19
20
21
# File 'lib/enigma/messages.rb', line 19

def self.success_message(file_name, key, date)
  "created #{file_name} with key #{key} and date #{date}"
end

Instance Method Details

#argument_errorObject



3
4
5
# File 'lib/enigma/messages.rb', line 3

def argument_error
  "Please enter the correct number of argument"
end

#file_not_presentObject



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_errorObject



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_fileObject



15
16
17
# File 'lib/enigma/messages.rb', line 15

def overwrite_file
  "The file exist would u like to over write it"
end