Module: Dishwasher::MessageFormatter

Included in:
DeleteForks, Github
Defined in:
lib/dishwasher/message_formatter.rb

Instance Method Summary collapse

Instance Method Details

#abort_message(message) ⇒ string

Abort message formatter

Returns:

  • (string)

    formatted abort string



17
18
19
# File 'lib/dishwasher/message_formatter.rb', line 17

def abort_message(message)
  abort "\n==== #{message} ====\n"
end

#body_message(message) ⇒ string

Body message formatter

Returns:

  • (string)

    formatted body string



26
27
28
# File 'lib/dishwasher/message_formatter.rb', line 26

def body_message(message)
  puts "\n#{message}\n"
end

#title_message(message) ⇒ string

Title message formatter

Returns:

  • (string)

    formatted title string



8
9
10
# File 'lib/dishwasher/message_formatter.rb', line 8

def title_message(message)
  puts "\n==== #{message} ====\n"
end