Class: MarkdownExec::DebugHelper

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

Constant Summary collapse

@@printed_messages =

Class-level variable to store history of printed messages

Set.new

Class Method Summary collapse

Class Method Details

.d(*str) ⇒ Object

Outputs a warning message only once for a unique set of inputs

Parameters:

  • str (Array)

    Variable number of arguments to be printed



526
527
528
529
530
531
# File 'lib/hash_delegator.rb', line 526

def self.d(*str)
  return if @@printed_messages.include?(str)

  warn(*str)
  @@printed_messages.add(str)
end