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
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 |