Class: Pumog::Messages

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

Class Method Summary collapse

Class Method Details

.author_name_error(author) ⇒ Object



7
8
9
# File 'lib/pumog/messages.rb', line 7

def self.author_name_error(author)
  "Author name can't be blank!" unless !author.empty?
end

.confirmObject



23
24
25
# File 'lib/pumog/messages.rb', line 23

def self.confirm
  "Is this correct? [y|n]:"
end

.confirm_creator(module_information) ⇒ Object



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

def self.confirm_creator(module_information)
  "Author/creator of the new module:\n#{module_information.author} <#{module_information.email}>"
end

.confirm_module_name(name) ⇒ Object



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

def self.confirm_module_name(name)
  "New module will be created in:\n#{Dir.home}/#{name}"
end

.email_adress_error(email) ⇒ Object



11
12
13
# File 'lib/pumog/messages.rb', line 11

def self.email_adress_error(email)
  "Email adress can't be blank!" unless !email.empty?
end

.module_name_error(name) ⇒ Object



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

def self.module_name_error(name)
  "Module name can't be blank!" unless !name.empty?
end