Module: Kiba::Extend::Warnable

Included in:
Kiba::Extend
Defined in:
lib/kiba/extend/warnable.rb

Overview

Mixin module containing Kiba::Extend.warn method

Instance Method Summary collapse

Instance Method Details

#warn(str, ws: " ") ⇒ String

Returns prepending Kiba::Extend.warning_label to the given string.

Parameters:

  • str (String) —

    the content of the warning message

  • ws (String) (defaults to: " ") —

    whitespace to separate Kiba::Extend.warning_label and str

Returns:



12
# File 'lib/kiba/extend/warnable.rb', line 12

def warn(str, ws: " ") = "#{Kiba::Extend.warning_label}#{ws}#{str}"