It’s cool to see code in an interpreted language being edited at the repl. Ruby’s style of building everything at runtime using the language itself has always felt delightfully consistent, but also very hard to reason about with static analysis — the usually tool for helping developers in their IDEa and LSP clients.
Far nicer to just execute the program and put a breakpoint at the cursor…
COLORS.each{ |c|
define_sheep_class(c)
}
sheep1 = Sheep::Bl|
This feels like the only way my editor stands a chance of completing this to Sheep::Black. Is this how Ruby IDE support works (e.g. in the JetBrains product.)