Skip to content

Instantly share code, notes, and snippets.

@giljr
Created November 2, 2025 13:47
Show Gist options
  • Save giljr/1089938d7401c6e687cf468313794a1e to your computer and use it in GitHub Desktop.
Save giljr/1089938d7401c6e687cf468313794a1e to your computer and use it in GitHub Desktop.
Static vs. Dynamic Code Analysis: How RuboCop Reads Ruby's Mind
Node Meaning Example
sbegin sequence of expressions top-level script
lvasgn local variable assignment name = ...
str simple string "Gilberto"
dstr dynamic string (with interpolation) "Hello, #{name}"
send method call puts ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment