gir_ffi-pretty_printer

Library and executable to pretty-print modules generated by GirFFI, taking method overrides and hand-added methods into account.


License
LGPL-2.1+
Install
gem install gir_ffi-pretty_printer -v 0.0.10

Documentation

GirFFI-PrettyPrinter

Pretty-printer for modules generated by GirFFI.

Features

  • Prints generated, overridden and hand-added methods.
  • Uses the mvz-live_ast gem to inspect runtime-generated methods.
  • Needs CRuby 3.0 or higher.

Usage

require 'gir_ffi-pretty_printer'

# Any version
puts GirFFI::PrettyPrinter.new.pretty_print 'GObject'

# A specific version
puts GirFFI::PrettyPrinter.new.pretty_print 'Gtk', '3.0'

Install

gem install gir_ffi-pretty_printer

Requirements

This gem depends on the GirFFI gem and its requirements.

This gem has not been tested on Mac OS X or Microsoft Windows. YMMV. Pull requests to support these platforms are welcome.

License

Copyright © 2012–2024, Matijs van Zuijlen

GirFFI-PrettyPrinter is free software, distributed under the terms of the GNU Lesser General Public License, version 2.1 or later. See the file COPYING.LIB for more information.