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



374
375
376
377
378
379
# File 'lib/hash_delegator.rb', line 374

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

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