Class: Pumog::Messages
- Inherits:
-
Object
- Object
- Pumog::Messages
- Defined in:
- lib/pumog/messages.rb
Class Method Summary collapse
- .author_name_error(author) ⇒ Object
- .confirm ⇒ Object
- .confirm_creator(module_information) ⇒ Object
- .confirm_module_name(name) ⇒ Object
- .email_adress_error(email) ⇒ Object
- .module_name_error(name) ⇒ Object
Class Method Details
.author_name_error(author) ⇒ Object
7 8 9 |
# File 'lib/pumog/messages.rb', line 7 def self.() "Author name can't be blank!" unless !.empty? end |
.confirm ⇒ Object
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.} <#{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 |