Sha256: 14a82bcde19bd96e621fc76c770c51975cfd098b7690e1c861b35fee5934c723
Contents?: true
Size: 455 Bytes
Versions: 11
Compression:
Stored size: 455 Bytes
Contents
class Wx::HTML::HtmlWindow # Need to override HtmlWindow.add_filter to provide cashing # for the added custom html filters to prevent premature GC class << self def html_filters @html_filters ||= [] end private :html_filters wx_add_filter = instance_method(:add_filter) define_method(:add_filter) do |filter| html_filters << filter wx_add_filter.bind(self).call(filter) end end end
Version data entries
11 entries across 11 versions & 1 rubygems