Module: Warning

Defined in:
lib/fatty/curses/patch.rb

Overview

This is here to supress a particular warning that is emitted by Curses mouse code.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.warn(msg, category: nil, **kwargs) ⇒ Object



10
11
12
13
14
# File 'lib/fatty/curses/patch.rb', line 10

def self.warn(msg, category: nil, **kwargs)
  return if msg.include?("undefining the allocator of T_DATA class Curses::MouseEvent")

  fatty_orig_warn(msg, category: category, **kwargs)
end

Instance Method Details

#fatty_orig_warnObject



7
# File 'lib/fatty/curses/patch.rb', line 7

alias_method :fatty_orig_warn, :warn