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.