Sha256: ccaaf63889c14890b9ea1e77ff38dd10f5bc1e48d87014fb8a401fa9a5c73472
Contents?: true
Size: 436 Bytes
Versions: 9
Compression:
Stored size: 436 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
9 entries across 9 versions & 1 rubygems