Ruby ffast

From wikinotes
Revision as of 15:53, 1 February 2024 by Will (talk | contribs) (→‎Usage)

A library and cli tool for searching/matching nodes within ruby's AST.

Documentation

github https://github.com/jonatas/fast

Install

gem install ffast

Usage

fast --ast some/file.rb            # show ast
fast '(const _ _)' some/file.rb    # find matching in some/file.rb