Kind: Function
Source: atloria-monorepo/libs/parser-core/src/parsers/backend/ruby-control-flow.ts
Read the guards and handlers out of Ruby source, or out of one method of it.
startLine/endLine are inclusive 1-based file lines, so an action can be read on its own
while the reported line numbers stay the file's.
Signature
tsfunction extractRubyControlFlow(source: string, startLine, endLine): ControlFlow
Parameters
| Name | Type |
|---|---|
source | string |
startLine | any |
endLine | any |
Returns: ControlFlow
Was this page helpful?