Method: Codebot::Formatter#format_event

Defined in:
lib/codebot/formatter.rb

#format_event(name) ⇒ String

Formats the name of a webhook event.

Parameters:

  • name (String)

    the name to format

Returns:

  • (String)

    the formatted name



103
104
105
# File 'lib/codebot/formatter.rb', line 103

def format_event(name)
  ::Cinch::Formatting.format(:bold, name.to_s)
end