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 = parsed.getInfo();
const methods = parsed.getMethods();
const comments = parsed.getComments();
const ast = parsed.getAst();