1.0.3 • Published 2 years ago

ruby_parser v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

JS Ruby file parser

Simple class for parsing ruby files, getting their methods, arguments, comments and AST.

const ruby = require('ruby_parser');
const parserObj = new ruby();

const parsed = parserObj.parse({
    filePath: 'tests/test.rb',
    // rubyString: `i = 7` // you can use filePath or rubyString
});

const info = parserObj.getInfo();
const methods = parserObj.getMethods();
const comments = parserObj.getComments();
const ast = parserObj.getAst(); // also, parserObj.parse method returns the ast
1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago