Sha256: 09e12fd23449af70630c3cefa399fb6118976ef1cbd04038a23bac9642f78381
Contents?: true
Size: 1.12 KB
Versions: 16
Compression:
Stored size: 1.12 KB
Contents
--- :wxHtmlFilter.CanRead: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby class MyFilter < Wx::HTML::HtmlFilter # ... def can_read(file) file.get_mime_type == 'application/x-ugh' end # ... end ``` :wxHtmlFilter.ReadFile: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby class MyFilter < Wx::HTML::HtmlFilter # ... def read_file(file) '<html><body><img src="' + file.get_location + '"></body></html>' end # ... end ``` :wxHtmlWindow.SetPage: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby htmlwin.set_page('<html><body>Hello, world!</body></html>') ```
Version data entries
16 entries across 16 versions & 1 rubygems