Class: MarkdownExec::DebugHelper
Constant Summary collapse
- @@printed_messages =
Class-level variable to store history of printed messages
Set.new
Class Method Summary collapse
-
.d(*str) ⇒ Object
Outputs a warning message only once for a unique set of inputs.
Class Method Details
.d(*str) ⇒ Object
Outputs a warning message only once for a unique set of inputs
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 |