Skip to content

Conversation

chaadow
Copy link
Contributor

@chaadow chaadow commented Sep 14, 2024

Using RubyVM ast new API, we can simple get a hold of the source of lambda/block.

This replaces the __ placeholder by the actual implementation of the @if lambda

image

end
end

def friendly_extract_source_from_callable(callable, with_affixes: true)
Copy link
Contributor Author

@chaadow chaadow Sep 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(it's the same helper from #10 )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello

@chaadow
Copy link
Contributor Author

chaadow commented Dec 6, 2024

@ankane I guess this one should be closed as well :/

If so, it is unfortunate, because it really helps to know that some jobs are conditional ( with the if statement )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants