Class: Omnom::Reporting
- Inherits:
-
Object
- Object
- Omnom::Reporting
- Defined in:
- lib/omnom/reporting.rb
Class Method Summary collapse
Class Method Details
.warn_once(key, message) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/omnom/reporting.rb', line 3 def self.warn_once(key, ) @warned_keys ||= [] return if @warned_keys.include?(key) warn "[Omnom] #{}" @warned_keys << key end |