A long-lived project that still receives updates
Library and executable to pretty-print modules generated by GirFFI, taking method overrides and hand-added methods into account.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.22.0
~> 5.12
~> 13.0
~> 1.52

Runtime

~> 0.17.0
~> 0.1.1
~> 1.0
 Project Readme

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.